Skip to content

Instantly share code, notes, and snippets.

View metadata.json
{
"title": "Road to Recovery",
"visbility": "public"
}
View gist:0d730446502902ad3597
[\h \[\033[0;36m\]\W\[\033[0m\]$(__git_ps1 " \[\033[1;32m\](%s)\[\033[0m\]")]\$
View keybase.md

Keybase proof

I hereby claim:

  • I am jazzychad on github.
  • I am jazzychad (https://keybase.io/jazzychad) on keybase.
  • I have a public key whose fingerprint is 985B C9D2 1466 2E73 C27D 9792 4D0C FB63 C09D 814E

To claim this, I am signing this object:

View gist:1aef114dcc0a67592630
{
"data": {
"caption": "Sniffing traffic",
"captionYPosition": 0.8010632,
"capturedAt": {
View metadata.json
{
"title": "My iOS Indie-Game Numbers",
"visbility": "public"
}
View mainqueue.c
// in some .h file
extern void runOnMainQueue(dispatch_block_t block);
extern void asyncRunOnMainQueue(dispatch_block_t block);
// in some .m file
void runOnMainQueue(dispatch_block_t block)
{
@jazzychad
jazzychad / notes.sh
Last active Aug 29, 2015
user input prompt
View notes.sh
# if you want to capture some kind of user input during a script (e.g. Xcode Run Script Phase) you can use this neato trick
#
# it will give up after 20 seconds of no input and return an empty string, in the case you you hit Build and just walk away
#
# note: only works on macs b/c it uses AppleScript
echo -n $(osascript -e 'set notes to the text returned of (display dialog "Build Notes" default answer "" buttons {"OK"} giving up after 20)')
# e.g.
BUILD_NOTES=`echo -n $(osascript -e 'set notes to the text returned of (display dialog "Build Notes" default answer "" buttons {"OK"} giving up after 20)')`
View metadata.json
{
"title": "Second!",
"visbility": "public",
"visibility": "public"
}
View metadata.json
{
"title": "Hello World",
"visbility": "public",
"visibility": "public"
}
View metadata.json
{
"title": "This is a Post",
"visbility": "public",
"visibility": "public"
}
You can’t perform that action at this time.