Skip to content

Instantly share code, notes, and snippets.

@Inferis
Inferis / UIView+RoundedOverlay.h
Created October 9, 2012 19:21
Apply a rounded overlay to a viewcontroller.
//
// UIView+RoundedOverlay.h
//
// Created by Tom Adriaenssen on 05/04/12.
//
#import <UIKit/UIKit.h>
@interface UIViewController (RoundedOverlay)
//
// Speciaal voor @junkiesxl
// ######## YES nil N, 10000000 iterations
// 0 0.376909: if
// 0 0.456258: if-equivalent statement
// 0 0.312767: statement
// 0 0.368508: statement-equivalent ifs
// 1 0.309485: if
// 1 0.324720: if-equivalent statement
@Inferis
Inferis / caveatPatchor.js
Created August 19, 2011 18:54
caveatPatcher.js inferis
/*
As of version 1.1.2, Propane will load and execute the contents of
~Library/Application Support/Propane/unsupported/caveatPatchor.js
immediately following the execution of its own enhancer.js file.
You can use this mechanism to add your own customizations to Campfire
in Propane.
Below you'll find two customization examples.
@Inferis
Inferis / UIColor+Hex.h
Created January 13, 2011 23:24
Hex + CSS extensions to create UIColors from hex colour values or CSS colour strings.
//
// UIColor+Hex.h
//
// Created by Tom Adriaenssen on 13/01/11.
//
@interface UIColor (Hex)
+ (UIColor*) colorWithCSS: (NSString*) css;
+ (UIColor*) colorWithHex: (NSUInteger) hex;