Skip to content

Instantly share code, notes, and snippets.

View brendanlim's full-sized avatar

Brendan G. Lim brendanlim

View GitHub Profile
// .h
@interface AMPNavigationBar : UINavigationBar
@property (nonatomic, assign) CGFloat extraColorLayerOpacity UI_APPEARANCE_SELECTOR;
@end
// .m

Keybase proof

I hereby claim:

  • I am brendanlim on github.
  • I am brendan (https://keybase.io/brendan) on keybase.
  • I have a public key whose fingerprint is 0897 4C8C 4E8A 34C5 AA36 E279 5A78 C42A 8C24 1C2B

To claim this, I am signing this object:

rage-quit support for bash

HOW TO INSTALL

Put flip somewhere in your $PATH and chmod a+x it.

Copy fuck into ~/.bashrc.

@brendanlim
brendanlim / latency.txt
Created August 6, 2012 00:14 — forked from jhclark/latency.txt
Latency numbers every programmer should know
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
Send 1K bytes over 1 Gbps network 10,000 ns 0.01 ms
Read 1 MB sequentially from memory 250,000 ns 0.25 ms
Round trip within same datacenter 500,000 ns 0.5 ms
Read 1 MB sequentially from SSD 1,000,000 ns 1 ms 4X memory
=== Epic Snow Leopard Upgrayyyyd Guide ===
Son, you’re now living in the land of 64-bit systems.
That means that some of your 32-bit shit is now broken.
Not all is lost.
== Fixing MySQL weirdness