Skip to content

Instantly share code, notes, and snippets.

At the Gym

Amber Star amberstar

At the Gym
Block or report user

Report or block amberstar

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
subdigital / pns.m
Created Jan 5, 2013
What are your favorite Xcode Snippets? Add them in the comments.
View pns.m
// Property Nonatomic Strong
// Platform: All
// Completion Scopes: ClassInterfaceMethods
@property (nonatomic, strong) <# class_name #> *<# variable_name #>;
bsneed / NSObject+RFExtensions.h
Created Oct 6, 2012
perform a block in a background thread, and call a completion block on the main thread when its done.
View NSObject+RFExtensions.h
// NSObject+RFExtensions.h
// Created by brandon on 10/5/12.
// Copyright (c) 2012 All rights reserved.
#import <Foundation/Foundation.h>
typedef void (^NSObjectPerformBlock)(id userObject);
odrobnik / gist:1789418
Created Feb 10, 2012
Asynchronous Deletion
View gist:1789418
// DTAsyncFileDeleter.m
// DTFoundation
// Created by Oliver Drobnik on 2/10/12.
// Copyright (c) 2012 Cocoanetics. All rights reserved.
#import "DTAsyncFileDeleter.h"
View Format code script for Xcode
~/Applications/UniversalIndentGUI/indenters/uncrustify -l OC -q -c ~/Applications/UniversalIndentGUI/config/uncrustify_obj_c.cfg
robin / gist:62684
Created Feb 12, 2009
round corner uiimage
View gist:62684
#import "ImageManipulator.h"
@implementation ImageManipulator
static void addRoundedRectToPath(CGContextRef context, CGRect rect, float ovalWidth, float ovalHeight)
float fw, fh;
if (ovalWidth == 0 || ovalHeight == 0) {
CGContextAddRect(context, rect);
You can’t perform that action at this time.