This file contains 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
#!/bin/sh | |
sudo apt-get -y install sphinx-common emacs24-nox gdb valgrind tmux zsh perl ruby | |
git clone git://github.com/ndbroadbent/scm_breeze.git ~/.scm_breeze | |
curl -L http://cpanmin.us | sudo perl - App::cpanminus | |
sudo cpanm Term::ANSIColor Getopt::ArgvFile Getopt::Long Regexp::Common | |
git clone https://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh |
This file contains 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
module math { | |
export function sum(x, y) { | |
return x + y; | |
}; | |
export var pi = 3.141593; | |
}; | |
import {sum, pi} from math; | |
import * from math; |
This file contains 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
function MyGadget() { | |
this.a = "test"; | |
var private = "private"; | |
this.getPrivate = function() { | |
return private; | |
} | |
} | |
var gadget = new MyGagdet(); | |
gadget.a; // "test" |
This file contains 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
var myFun = function() { | |
var event = jQuery.event; | |
// remainder of potentially long code uses local reference | |
} |
This file contains 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
MYAPP.namespace("MYAPP.utils.set"); | |
MYAPP.utils.set = (function() { | |
// dependencies | |
var someDep = OTHERLIB.util.collections, | |
// private properties | |
privateVar = "private", | |
// methods | |
privateMethod = function() { |
This file contains 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
var one = 1, | |
two = 2, | |
three = 3; |