Skip to content

Instantly share code, notes, and snippets.

View fivenorth's full-sized avatar

Scott Johnson fivenorth

View GitHub Profile
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
self.viewController = [[JBViewController alloc] initWithNibName:@"JBViewController" bundle:nil];
self.window.rootViewController = self.viewController;
// ADD THIS LINE:
[self.window setTransform:CGAffineTransformMakeScale(0.81, 0.81)];
@joshbuhler
joshbuhler / gist:1424129
Created December 2, 2011 17:41
MoviePlayer notifications
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(moviePlaybackDidStart:)
name:@"UIMoviePlayerControllerDidEnterFullscreenNotification"
object:nil];
// Apparently Apple had this notification misspelled in iOS < 4.3
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(moviePlaybackDidStart:)
name:@"UIMoviePlayerControllerDidEnterFullcreenNotification"
object:nil];
@gruber
gruber / gist:1063605
Created July 4, 2011 16:48
Simple Inbox Archiving Script for Apple Mail
-- See article here: http://daringfireball.net/2007/07/simple_inbox_sweeper
-- The following should be one long line:
set _description to "All unflagged, read messages in each IMAP account
inbox will be moved to the “Archive” mailbox corresponding to that
account. This action is not undoable."
tell application "Mail"
display alert "Archive read messages from IMAP inboxes?" buttons ¬
{"Cancel", "Archive"} cancel button 1 message _description