Skip to content

Instantly share code, notes, and snippets.

View sneakyness's full-sized avatar
💭
Rolling up to the function like a stretched out Steve Ballmer

Nick Pannuto sneakyness

💭
Rolling up to the function like a stretched out Steve Ballmer
View GitHub Profile
@sneakyness
sneakyness / gist:8820763
Created February 5, 2014 10:26
Decent iOS TD Games List

iOS Tower Defense Games

  • GeoDefense
  • GeoDefense Swarm
  • Plants vs Zombies HD
  • Plants vs Zombies 2
  • Fieldrunners
  • Kingdom Rush HD
  • Kingdom Rush Frontiers
  • Gem Keeper
  • Anomaly Warzone Earth
@sneakyness
sneakyness / gist:8725618
Last active August 29, 2015 13:55
twitter.txt
Granite
911 biggie
Lack toast
Raymond noodles
Maid wake
Mack book
Labtop
Mute point
Intensive purposes
How do you spell
@sneakyness
sneakyness / gist:8642402
Created January 27, 2014 02:20
boris_random
#define boris_random(smallNumber, bigNumber) ((((float) (arc4random() % ((unsigned)RAND_MAX + 1)) / RAND_MAX) * (bigNumber - smallNumber)) + smallNumber)
++++++++++[>++++++++++[>+>+<<-]<-]>>>>++++++++++++++++++++++++++++++++++++++++++++++++[>+>+>+<<<-]<<<<>>[->->>>>+>>>>+><<<<<<<<++++++++++>>>>>>>>++++++++++<[-<<<<<<<->>>>>>>>-<]++++++++++<<<<<<<[->>>>>>>-<<<<<<<]>>>>[-]+>>>>[<<<<->>>>[-]]<<<<<<<<>>>>[<<<<>>>---------->>>>----------<+<<<<+<<++++++++++>>>>>>>>++++++++++<<[-<<<<<<->>>>>>>>-<<]++++++++++<<<<<<[->>>>>>-<<<<<<]>>>>[-]+>>>>[<<<<->>>>[-]]<<<<<<<<>>>>[<<<<>>---------->>>>----------<+<<<<+<>>>>[-]]<<<<>>>>[-]]<<<<>>>>>>>>>>>[-]+<<<[-]+++>>>>[-]+<<<<>+[-<->]+++<[->->>>[-]<<<<]>>>>[<[-]>[-]++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.+++++++++++++++++++++++++++++++++++.+++++++++++++++++..[-]<<<--->>>]<<<<[-]+++++>>>>[-]+<<<<>>+[-<<->>]+++++<<[->>->>[-]<<<<]>>>>[<[-]>[-]++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.+++++++++++++++++++++++++++++++++++++++++++++++++++.+++++..[-]<<----->>]<<<<>>>[<<<<<<<<<<<>.>.>.<<<>>>>>>>>>>>[-]]<<<<<<<<<<<<<<<[-]+++++++++++++.---.[-]>>]<<
@sneakyness
sneakyness / gist:6644441
Created September 20, 2013 21:54
crunchitize me, captain!!!!
// insert in viewDidLoad for fun wobbly time
UIInterpolatingMotionEffect *mxx = [[UIInterpolatingMotionEffect alloc] initWithKeyPath:@"layer.transform.rotation.y" type:UIInterpolatingMotionEffectTypeTiltAlongHorizontalAxis];
mxx.maximumRelativeValue = @-0.75;
mxx.minimumRelativeValue = @0.75;
UIInterpolatingMotionEffect *mxy = [[UIInterpolatingMotionEffect alloc] initWithKeyPath:@"layer.transform.rotation.x" type:UIInterpolatingMotionEffectTypeTiltAlongVerticalAxis];
mxy.maximumRelativeValue = @-0.75;
mxy.minimumRelativeValue = @0.75;
@sneakyness
sneakyness / gist:6314409
Created August 23, 2013 00:45
lol tradewars
577 BBB 110 591 789 898 908 991
110 --- 127 192 577
127 --- 110 287 482
287 SSS 104 381
104 --- 287 304 320 321
304 BBS 104 128 633 766
128 --- 37_ 61_ 289 304 911
37_ --- 77_ 128
766 BBS 189 304 875
189 --- 214 568 790 891 951
@sneakyness
sneakyness / gist:5447324
Created April 23, 2013 20:56
UITextField subclass alignment overrides
- (CGRect) textRectForBounds: (CGRect) bounds
{
CGRect origValue = [super textRectForBounds: bounds];
return CGRectOffset(origValue, 0.0f, 8.0f);
}
- (CGRect) editingRectForBounds: (CGRect) bounds
{
CGRect origValue = [super textRectForBounds: bounds];
@sneakyness
sneakyness / checkerboard.mm
Created April 19, 2013 19:54
"Empty" (Checkerboard) iOS Background Pattern
UIImage *EmptyBGPattern()
{
CGFloat side = 16;
CGSize size = CGSizeMake(side, side);
UIGraphicsBeginImageContextWithOptions(size, NO, [UIScreen mainScreen].scale);
[[UIColor whiteColor] setFill];
UIRectFill((CGRect){.size = size});
CGRect r = CGRectMake(0, 0, side / 2, side / 2);
# This file was generated by Tor; if you edit it, comments will not be preserved
# The old torrc file was renamed to torrc.orig.1 or similar, and Tor will ignore it
ExitNodes {us}
StrictExitNodes 1
ControlPort 9051
DirReqStatistics 0
HashedControlPassword 16:B4E75CA579C1C7D46016FFED1E8F35967198031230124FC45E4CD09D97
Log notice stdout
@sneakyness
sneakyness / gist:4181233
Created December 1, 2012 09:12
Example of JSON returned from HUE
{
"lights": {
"1": {
"state": {
"on": true,
"bri": 254,
"hue": 0,
"sat": 211,
"xy": [
0.6251,