Skip to content

Instantly share code, notes, and snippets.

View jklp's full-sized avatar

Jerrold Poh jklp

View GitHub Profile
#define CT_SHARED_INSTANCE_USING_BLOCK(block) \
static dispatch_once_t pred = 0; \
__strong static id _sharedObject = nil; \
dispatch_once(&pred, ^{ \
_sharedObject = block(); \
}); \
return _sharedObject;
+ (SharedThing *)sharedInstance {
@kevin-smets
kevin-smets / iterm2-solarized.md
Last active November 14, 2024 15:40
iTerm2 + Oh My Zsh + Solarized color scheme + Source Code Pro Powerline + Font Awesome + [Powerlevel10k] - (macOS)

Default

Default

Powerlevel10k

Powerlevel10k

@trey
trey / heroku_db_pull.md
Created October 14, 2012 21:09
Getting `heroku db:pull` to Work

Getting heroku db:pull to Work

$ rvm install 1.9.2
  • I had to do this business per the instructions I saw when I ran that command: