This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Please do not ACK my ACKs! | |
I already have stacks and stacks! | |
If you would be so kind, offer me some pork rind. | |
You see, I prefer snacks, not ACKs! | |
I have a yak. His name is Jack. | |
And when he walks, Jack makes tracks. | |
I follow his tracks to stacks of snacks. | |
But when you ACK my ACKs, all I see are stacks of ACKs. | |
I cannot see Jack's yak tracks! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@interface LocalContact : NSObject | |
@property (nonatomic, copy) NSString *firstName; | |
@property (nonatomic, copy) NSString *lastName; | |
@property (nonatomic, copy, readonly) NSString *fullName; | |
@property (nonatomic, copy) NSString *mobileNumber; | |
@property (nonatomic, copy) NSString *normalizedMobileNumber; | |
@property (nonatomic, copy) NSString *facebookID; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Thanks guys, with a little help from a friend I ended up fixing it by | |
setting on the pods project "Build active architechtures only" to no. and | |
then the standard architechtures for both the targets and the project. | |
Hope this helps someone. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static inline void dispatchOncePersistent(NSString *prefsKey, void (^aBlock)()) | |
{ | |
if (![[NSUserDefaults standardUserDefaults] boolForKey:prefsKey]) { | |
[[NSUserDefaults standardUserDefaults] setBool:YES forKey:prefsKey]; | |
[[NSUserDefaults standardUserDefaults] synchronize]; | |
aBlock(); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'-------------------------- | |
' Yahtzee Version 1.1 | |
' Brian Hammond | |
' Finished: June 25, 1995 | |
' Coded in: MS-QBasic 7.1 | |
'-------------------------- | |
'Initial Setup------------------------------------------------------------- | |
'make arrays static by usage of a MetaCommand (needs the comment) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[[UIApplication sharedApplication] sendAction:@selector(resignFirstResponder) to:nil from:nil forEvent:nil]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# 1. install multimarkdown | |
# 2. clone the CocoaPods/Specs repo to ~/OpenSource/Specs | |
cd ~/OpenSource/Specs | |
git pull | |
file=~/Desktop/cocoapods-specs.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import "cocos2d.h" | |
@interface CCScreenshot: NSObject | |
+ (NSString *)screenshotPathForFile:(NSString *)file; | |
+ (CCRenderTexture *)screenshotWithStartNode:(CCNode*)startNode filename:(NSString*)filename; | |
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (void) layerPanZoom: (CCLayerPanZoom *) sender | |
clickedAtPoint: (CGPoint) point | |
tapCount: (NSUInteger) tapCount | |
{ | |
NSLog(@"CCLayerPanZoomTestLayer#layerPanZoom: %@ clickedAtPoint: { %f, %f }", sender, point.x, point.y); | |
if (tapCount == 2) { | |
// Toggle zooming all the way in and all the way out. | |
float midScale = (sender.minScale + sender.maxScale) / 2.0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Problem 1 | |
* | |
* See http://apply.embed.ly/1 | |
* | |
* The trick here is to realize that primitive types will overflow very quickly. | |
* This problem gave me a nice excuse to learn libgmp. | |
* | |
* On Mac OS X, | |
* $ brew install gmp | |
* $ gcc problem1.c && ./a.out |