
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 MyAwesomeSingletonPleaseDontNameMeThis: NSObject | |
+ (id)sharedInstance; | |
- (void)registerForNotifications; | |
@end | |
@implementation MyAwesomeSingletonPleaseDontNameMeThis | |
+ (id)sharedInstance { | |
static id _sh; | |
static dispatch_once_t onceToken; | |
dispatch_once(&onceToken, ^{ |
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/bash | |
# The only tool used here that is not included with OS X is `lzma`. | |
# It is only used when extracting packages with LZMA data compression. | |
echo "Downloading list of packages..." | |
REPOS=('http://apt.thebigboss.org/repofiles/cydia'); # Others, such as ModMyi can be added here | |
for i in "${!REPOS[@]}"; do | |
curl -s -L "${REPOS[i]}/dists/stable/main/binary-iphoneos-arm/Packages.bz2" | bzcat -- >> "Packages.${i}" | |
done |
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 <QuartzCore/QuartzCore.h> | |
@interface ArrowLayer : CALayer | |
@property (nonatomic) CGFloat thickness; | |
@property (nonatomic) CGFloat startRadians; | |
@property (nonatomic) CGFloat lengthRadians; | |
@property (nonatomic) CGFloat headLengthRadians; | |
@property (nonatomic, strong) UIColor *fillColor; |