Skip to content

Instantly share code, notes, and snippets.

@toolhouse
toolhouse / install_homebrew.rb
Created November 23, 2011 02:50 — forked from mxcl/install_homebrew.markdown
Installs Toolhouse Homebrew fork to /usr/local so you don't need sudo to `brew install`
#!/usr/bin/ruby
# This script installs to /usr/local only from the Toolhouse Homebrew fork.
# To install elsewhere untar https://github.com/toolhouse/homebrew/tarball/master
# anywhere you like.
module Tty extend self
def blue; bold 34; end
def white; bold 39; end
def red; underline 31; end
def reset; escape 0; end
@toolhouse
toolhouse / SampleModule.js
Created April 12, 2011 00:16
Sample of the Module Pattern in JavaScript
/**
* Sample of Module Pattern in JavaScript
*/
var Module = (function(undefined){
//private variable
var privateVariable = "private foo";
//private method
function privateMethod() {