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:
I hereby claim:
To claim this, I am signing this object:
{ | |
"data": { | |
"caption": "Sniffing traffic", | |
"captionYPosition": 0.8010632, | |
"capturedAt": { |
{ | |
"title": "My iOS Indie-Game Numbers", | |
"timestamp": "2014-07-29T17:35:23.000Z", | |
"visbility": "public" | |
} |
// 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) | |
{ |
# 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)')` |
{ | |
"title": "Hello World", | |
"visbility": "public", | |
"visibility": "public" | |
} |
{ | |
"title": "Second!", | |
"visbility": "public", | |
"visibility": "public" | |
} |
{ | |
"title": "Announcing gistbits!", | |
"visbility": "public", | |
"visibility": "public" | |
} |
{ | |
"title": "This is a Post", | |
"visbility": "public", | |
"visibility": "public" | |
} |
- (void)set<#Property#>:(<#class#> *)<#parameter#> | |
{ | |
if (<#ivar#> != <#parameter#>) { | |
if (<#ivar#>) { | |
[[NSNotificationCenter defaultCenter] removeObserver:self name:<#(NSString *)#> object:<#(ivar)#>]; | |
} | |
<#ivar#> = <#parameter#>; | |
if (<#ivar#>) { |