Skip to content

Instantly share code, notes, and snippets.

View theiostream's full-sized avatar

Daniel Ferreira theiostream

View GitHub Profile
@uebo
uebo / Default-568h@2x.png
Last active October 12, 2022 01:41
iOS Sample Launch Screen File
Default-568h@2x.png
@DHowett
DHowett / Tweak.xm
Last active December 16, 2015 21:09
@interface MyAwesomeSingletonPleaseDontNameMeThis: NSObject
+ (id)sharedInstance;
- (void)registerForNotifications;
@end
@implementation MyAwesomeSingletonPleaseDontNameMeThis
+ (id)sharedInstance {
static id _sh;
static dispatch_once_t onceToken;
dispatch_once(&onceToken, ^{
@conradev
conradev / get_libraries.sh
Created March 19, 2013 19:29
This script downloads and extracts libraries from Cydia packages and places them into your Theos installation.
#!/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
@mayoff
mayoff / ArrowLayer.h
Created November 27, 2012 06:44
A CALayer subclass that draws a very simple arrow
#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;