Skip to content

Instantly share code, notes, and snippets.

View rockstar's full-sized avatar

Paul Hummer rockstar

View GitHub Profile
### Keybase proof
I hereby claim:
* I am rockstar on github.
* I am rockstar (https://keybase.io/rockstar) on keybase.
* I have a public key whose fingerprint is D9F0 D7E3 EC68 D34D 3CDB FD68 1037 16FA 1EC3 4C10
To claim this, I am signing this object:
sites:
- name: example1.com
db: example1
- name: example2.com
db: example2
@rockstar
rockstar / gist:3401380
Created August 20, 2012 05:45
cocos2d boundingBox highlight
-(void)draw {
[super draw];
if (selected) {
CGRect rect = [self boundingBox];
CGPoint vertices[4] = {
ccp(0, 0),
ccp(0, rect.size.height),
ccp(rect.size.width, rect.size.height),
ccp(rect.size.width, 0)
};
@rockstar
rockstar / gist:3387218
Created August 18, 2012 14:54
Crash your iOS app on purpose
-(void)doTheThing {
switch (item) {
case firstCase:
...
break;
case secondCase:
...
break;
default:
NSLog(@"Unknown case %u", item);