This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Sample of Module Pattern in JavaScript | |
| */ | |
| var Module = (function(undefined){ | |
| //private variable | |
| var privateVariable = "private foo"; | |
| //private method | |
| function privateMethod() { |