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
// June 11, 2012 | |
// https://twitter.com/b3ll/status/212169466665111552 | |
-(BOOL)isBlocked | |
{ | |
return false; | |
} | |
-(int)epicWWDCLineHacks | |
{ |
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
// Fibonnaci Pandas | |
let terms = 10 | |
func fib(n:Int) -> Int { | |
if n == 0 || n == 1 { | |
return n | |
} else { | |
return fib(n-1) + fib(n-2) | |
} |
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 Cocoa | |
var MAYBE: Bool { | |
get { | |
return Bool(Int(arc4random_uniform(2))) | |
} | |
} | |
var thisIsTotallyAGoodIdea = MAYBE |
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
// | |
// SheepParty.swift | |
// Sheep Party | |
// | |
// Adam Bell, 2014 | |
import Foundation | |
class 🎉 : NSObject | |
{ |
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
function spoofmac | |
sudo /System/Library/PrivateFrameworks/Apple80211.framework/Resources/airport -z | |
sudo ifconfig en0 ether $argv | |
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
s = [SBIconController sharedInstance]; | |
l = s.currentRootIconList; | |
icons = [NSMutableArray array]; | |
for (var i = 0; i < l.icons.length; i++) { | |
[icons addObject:[l viewForIcon:l.icons[i]]]; | |
} | |
// icons = choose(SBIconView); works, but doesn't, because superview | |
animator = [[UIDynamicAnimator alloc] initWithReferenceView:icons[0].superview]; |
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
// Basically what every single developer has done to update their app for iOS 7 :P | |
@interface UIBlurView : UIToolbar | |
@end | |
@implementation UIBlurView | |
@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
NSDate *date = [NSDate date]; | |
CTFontRef font = CTFontCreateWithName((__bridge CFStringRef)@"DOGE_NOT_APPROVE", 12, NULL); | |
NSDictionary *attributes = @{(__bridge id)kCTFontAttributeName: (__bridge_transfer id)font}; | |
NSAttributedString *string = [[NSAttributedString alloc] initWithString:@"broked" attributes:attributes]; | |
NSLog(@"%f %@", [date timeIntervalSinceNow], string); |
NewerOlder