Skip to content

Instantly share code, notes, and snippets.

Avatar

Daniel Ferreira theiostream

View GitHub Profile
@conradev
conradev / get_libraries.sh
Created Mar 19, 2013
This script downloads and extracts libraries from Cydia packages and places them into your Theos installation.
View get_libraries.sh
#!/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
View Tweak.xm
@interface MyAwesomeSingletonPleaseDontNameMeThis: NSObject
+ (id)sharedInstance;
- (void)registerForNotifications;
@end
@implementation MyAwesomeSingletonPleaseDontNameMeThis
+ (id)sharedInstance {
static id _sh;
static dispatch_once_t onceToken;
dispatch_once(&onceToken, ^{
@mayoff
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;