Based on https://gist.github.com/kevin-smets/8568070
-
Install iTerm2
-
Import patched Solarized Dark under Settings → Profiles → Colors → Color Presets…
More info on patched vs vanilla Solarized Dark:
//Dijkstra algorithm is used to find the shortest distance between two nodes inside a valid weighted graph. Often used in Google Maps, Network Router etc. | |
//helper class for PriorityQueue | |
class Node { | |
constructor(val, priority) { | |
this.val = val; | |
this.priority = priority; | |
} | |
} |
Mute these words in your settings here: https://twitter.com/settings/muted_keywords | |
ActivityTweet | |
generic_activity_highlights | |
generic_activity_momentsbreaking | |
RankedOrganicTweet | |
suggest_activity | |
suggest_activity_feed | |
suggest_activity_highlights | |
suggest_activity_tweet |
Based on https://gist.github.com/kevin-smets/8568070
Install iTerm2
Import patched Solarized Dark under Settings → Profiles → Colors → Color Presets…
More info on patched vs vanilla Solarized Dark:
⚠️ Note 2023-01-21
Some things have changed since I originally wrote this in 2016. I have updated a few minor details, and the advice is still broadly the same, but there are some new Cloudflare features you can (and should) take advantage of. In particular, pay attention to Trevor Stevens' comment here from 22 January 2022, and Matt Stenson's useful caching advice. In addition, Backblaze, with whom Cloudflare are a Bandwidth Alliance partner, have published their own guide detailing how to use Cloudflare's Web Workers to cache content from B2 private buckets. That is worth reading,
FROM ubuntu | |
COPY entry.sh cmd.sh / | |
ENTRYPOINT ["/entry.sh"] | |
CMD ["/cmd.sh", "ololo"] |
function* range(start, end, skip = 1) { | |
if (!end) {end = start; start = 1} | |
while (start <= end) { | |
yield start; | |
start += skip | |
} | |
} | |
console.log( [...range(7)] ); | |
// [ 1, 2, 3, 4, 5, 6, 7 ] |
#!/bin/sh | |
filter='subsystem contains "com.apple.TimeMachine"' | |
log show --style syslog --info --last 12h --predicate "$filter" | |
log stream --style syslog --info --predicate "$filter" |
What is strict aliasing? First we will describe what is aliasing and then we can learn what being strict about it means.
In C and C++ aliasing has to do with what expression types we are allowed to access stored values through. In both C and C++ the standard specifies which expression types are allowed to alias which types. The compiler and optimizer are allowed to assume we follow the aliasing rules strictly, hence the term strict aliasing rule. If we attempt to access a value using a type not allowed it is classified as undefined behavior(UB). Once we have undefined behavior all bets are off, the results of our program are no longer reliable.
Unfortunately with strict aliasing violations, we will often obtain the results we expect, leaving the possibility the a future version of a compiler with a new optimization will break code we th