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:
[\h \[\033[0;36m\]\W\[\033[0m\]$(__git_ps1 " \[\033[1;32m\](%s)\[\033[0m\]")]\$ |
I hereby claim:
To claim this, I am signing this object:
{ | |
"data": { | |
"caption": "Sniffing traffic", | |
"captionYPosition": 0.8010632, | |
"capturedAt": { |
// 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": "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#>) { |
- (void)dealloc | |
{ | |
[[NSNotificationCenter defaultCenter] removeObserver:self]; | |
} | |
- (void)layoutSubviews | |
{ | |
[super layoutSubviews]; | |
} |