Skip to content

Instantly share code, notes, and snippets.

View xjones's full-sized avatar

Russell Johnson xjones

View GitHub Profile

Keybase proof

I hereby claim:

To claim this, I am signing this object:

class Document
attr_accessor :sections
def initialize
@sections = []
end
end
class Reader
# should be able to view documents
@xjones
xjones / TransitionController.h
Created November 26, 2011 03:48
TransitionController for animating iOS view controller transitions w/o a controller stack
//
// TransitionController.h
//
// Created by XJones on 11/25/11.
//
#import <UIKit/UIKit.h>
@interface TransitionController : UIViewController
@xjones
xjones / ExampleClass.m
Created October 21, 2011 21:59 — forked from lukeredpath/ExampleClass.m
Macro for creating your "shared instance" using GCD
@implementation MySharedThing
// Using method 1
//
DEFINE_SHARED_INSTANCE_FOR_CLASS(MySharedThing)
// Using method 2
//
+ (id)sharedInstance
{