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 / gist:1688354
Created January 27, 2012 11:25
Regex to match any decimal number in source files
([+-])?(0|[1-9][0-9]*)(?:\.([0-9]+))?(?:[Ee]([+-])?(0|[1-9][0-9]*)(?:\.([0-9]+))?)?
@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;