Skip to content

Instantly share code, notes, and snippets.

View aelam's full-sized avatar
🎯
Focusing

Lun Wang aelam

🎯
Focusing
View GitHub Profile
@interface UIImage (fixOrientation)
- (UIImage *)fixOrientation;
@end
@skabber
skabber / gist:1385007
Created November 22, 2011 05:55
xcrun PackageApplication
/usr/bin/xcrun -sdk iphoneos PackageApplication -v "${RELEASE_BUILDDIR}/${APPLICATION_NAME}.app" -o "${BUILD_HISTORY_DIR}/${APPLICATION_NAME}.ipa" --sign "${DEVELOPER_NAME}" --embed "${PROVISONING_PROFILE}”
@napcs
napcs / .tmux.clipboard
Created August 15, 2011 19:28
My tmux config
# configuration for osx clipboard support
set-option -g default-command "reattach-to-user-namespace -l sh"
@mgile
mgile / fake_https
Created April 18, 2011 22:13
A stunnel configuration file for use with Django runserver
pid=
cert = /usr/local/etc/stunnel/stunnel.pem
sslVersion = SSLv3
foreground=yes
debug = 7
output = /path/to/stunnel.log
[https]
accept=8443
@nevyn
nevyn / SPBindings.h
Created September 8, 2010 16:30
Bindings for iOS
#import <Foundation/Foundation.h>
@interface NSObject (SPBindings)
-(void)sp_bind:(NSString*)binding toObject:(id)observable withKeyPath:(NSString*)observableKeyPath;
-(void)sp_unbind:(NSString*)binding;
@end
@benlodotcom
benlodotcom / MyAVController.h
Last active February 3, 2016 17:45
A little demo snippet that you can use to access directly the camera video in IOS4
#import <UIKit/UIKit.h>
#import <AVFoundation/AVFoundation.h>
#import <CoreGraphics/CoreGraphics.h>
#import <CoreVideo/CoreVideo.h>
#import <CoreMedia/CoreMedia.h>
/*!
@class AVController
@author Benjamin Loulier