Skip to content

Instantly share code, notes, and snippets.

View rowanj's full-sized avatar
🐧
Seizing the machines of production

Rowan James rowanj

🐧
Seizing the machines of production
View GitHub Profile
@rowanj
rowanj / UIImage+Extensions.h
Last active December 16, 2015 18:39 — forked from troystribling/UIImage+Extensions.h
Make a blank UI image with a given size, and optional fill color
#import <Foundation/Foundation.h>
@interface UIImage (Extensions)
+ (UIImage*)blankImage:(CGSize)_size;
+ (UIImage*)blankImage:(CGSize)_size withColor:(UIColor*)_color;
@end
@rowanj
rowanj / dct_weak.h
Created December 29, 2011 01:01 — forked from Abizern/dct_weak.h
ARC macros for weak references
#ifndef _DCT_WEAK_H
#define _DCT_WEAK_H
// Macros for portable support of notionally weak properties with ARC
// Forked from https://gist.github.com/1354106
// Updated by Rowan James
// Available at https://gist.github.com/1530868
// Defines:
// dct_weak to be used as a replacement for the 'weak' keyword:
// @property (dct_weak) NSObject* propertyName;