Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
WakiMiko
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
4 ms
·
1.
▲
by
WakiMiko
4y ago
difftastic doesn't show whitespace or formatting changes
2.
▲
by
WakiMiko
4y ago
Printers are way worse
3.
▲
by
WakiMiko
5y ago
Lol
4.
▲
by
WakiMiko
5y ago
Very cool project! It's interesting to see how different DNS providers cap the maximum TTL. Google uses 21600s Quad9 uses 43200s Cloudflare does not cap at all! And my personal unbound uses 86400s (which is the default)
5.
▲
by
WakiMiko
8y ago
I quite like this tuple approach. And yeah, I meant Ord (and the required other Traits), I edited my post. Thanks for pointing this out.
6.
▲
by
WakiMiko
8y ago
For sorting sequential fields you can chain comparisons with .then(): struct Date { year: u32, month: u32, day: u32, } let mut vec: Vec<Date> = Vec::new(); vec.sort_by(|a,b| {
7.
▲
by
WakiMiko
8y ago
Rust has a `usize` which is 32 or 64 bits depending on the platform and also serves as the native index type for arrays and such.
8.
▲
by
WakiMiko
8y ago
Does it cover the Parker Square?