Skip to content

Instantly share code, notes, and snippets.


Daniel Ferreira theiostream

View GitHub Profile
conradev /
Created Mar 19, 2013
This script downloads and extracts libraries from Cydia packages and places them into your Theos installation.
# 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=(''); # 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}"
View Tweak.xm
@interface MyAwesomeSingletonPleaseDontNameMeThis: NSObject
+ (id)sharedInstance;
- (void)registerForNotifications;
@implementation MyAwesomeSingletonPleaseDontNameMeThis
+ (id)sharedInstance {
static id _sh;
static dispatch_once_t onceToken;
dispatch_once(&onceToken, ^{
mayoff / ArrowLayer.h
Created Nov 27, 2012
A CALayer subclass that draws a very simple arrow
View ArrowLayer.h
#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;