Skip to content

Instantly share code, notes, and snippets.

View jonsterling's full-sized avatar

Jon Sterling jonsterling

View GitHub Profile
@stuartcarnie
stuartcarnie / main.m
Created March 4, 2011 19:59
Demonstrates we can now support limited JIT compilation on recent versions of iOS (assuming Apple approves entitlements at some future point)
//
// main.m
// ProtectTest
// Demonstrates newer versions of iOS now support PROT_EXEC pages, for just-in-time compilation.
//
// Must be compiled with Thumb disabled
//
// Created by Stuart Carnie on 3/4/11.
// Copyright 2011 Manomio LLC. All rights reserved.
//
@amudi
amudi / UIApplication+NetworkActivityIndicator.m
Created January 13, 2011 06:33
[iOS] centralized network activity indicator counter
@interface UIApplication (NetworkActivityIndicator)
- (void)increaseActiveRequests;
- (void)decreaseActiveRequests;
@end
@implementation UIApplication (NetworkActivityIndicator)
static int counter = 0;
@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