Skip to content

Instantly share code, notes, and snippets.

@jasonrudolph
jasonrudolph / about.md
Last active May 14, 2024 16:36
Programming Achievements: How to Level Up as a Developer
;; mattyw's solution to Reverse a Sequence
;; https://4clojure.com/problem/23
(fn [seq] (reduce (fn [a b] (cons b a)) '() seq))
@jboner
jboner / latency.txt
Last active July 28, 2024 12:12
Latency Numbers Every Programmer Should Know
Latency Comparison Numbers (~2012)
----------------------------------
L1 cache reference 0.5 ns
Branch mispredict 5 ns
L2 cache reference 7 ns 14x L1 cache
Mutex lock/unlock 25 ns
Main memory reference 100 ns 20x L2 cache, 200x L1 cache
Compress 1K bytes with Zippy 3,000 ns 3 us
Send 1K bytes over 1 Gbps network 10,000 ns 10 us
Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD
@piscisaureus
piscisaureus / pr.md
Created August 13, 2012 16:12
Checkout github pull requests locally

Locate the section for your github remote in the .git/config file. It looks like this:

[remote "origin"]
	fetch = +refs/heads/*:refs/remotes/origin/*
	url = git@github.com:joyent/node.git

Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:

@wsargent
wsargent / docker_cheat.md
Last active June 29, 2024 19:32
Docker cheat sheet
Speaking of getting things done, not sure if this has been catalogued, but here's a list of the first two seasons of the sub-podcast "Grey’s Efficiencies" (term coined by /u/JeffDujon) for those that liked 41 and 39.
- [Work-Life Balance… Or Maybe Not.](http://youtu.be/DtSXlTTGFrQ?t=8m14s)
- [Delay… Delay… Delay \(aka the first mention of OmniFocus\)](http://youtu.be/ieHQCXiXREM?t=31m24s)
- [Owning and Moving Objects](http://youtu.be/-j-tCHzjam4?t=20m27s)
- [Travel Checklists](http://youtu.be/-j-tCHzjam4?t=38m1s)
- [Minimalism vs Functionalism](http://youtu.be/-6gKdbFhla4?t=11m5s)
- [Email](http://youtu.be/-6gKdbFhla4?t=40m00s)
- [Grey's Least Favorite Emails](http://youtu.be/WeXaEOOXWk0?t=4m53s)
- [Grey’s Bayesian Email Filter Named Brady](http://youtu.be/JfIrFBoUH44?t=14m05s)
@egmontkob
egmontkob / Hyperlinks_in_Terminal_Emulators.md
Last active July 20, 2024 23:50
Hyperlinks in Terminal Emulators