Skip to content

Instantly share code, notes, and snippets.

@brizemedia
brizemedia / GlobalFunctionIsolator.php
Created April 3, 2012 07:08
The basic isolator concept distilled.
<?php
class GlobalFunctionIsolator {
public static function get(GlobalFunctionIsolator $isolator = NULL) {
if ($isolator) {
return $isolator;
} else if (self::$instance) {
return self::$instance;
} else {
@brizemedia
brizemedia / hack.sh
Created April 1, 2012 23:51 — forked from erikh/hack.sh
OSX For Hackers
#!/usr/bin/env sh
##
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh
#