Skip to content

Instantly share code, notes, and snippets.

@kaihowl
kaihowl / setup.sh
Created March 15, 2014 19:26 — forked from bastih/setup.sh
#!/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
module math {
export function sum(x, y) {
return x + y;
};
export var pi = 3.141593;
};
import {sum, pi} from math;
import * from math;
function MyGadget() {
this.a = "test";
var private = "private";
this.getPrivate = function() {
return private;
}
}
var gadget = new MyGagdet();
gadget.a; // "test"
var myFun = function() {
var event = jQuery.event;
// remainder of potentially long code uses local reference
}
MYAPP.namespace("MYAPP.utils.set");
MYAPP.utils.set = (function() {
// dependencies
var someDep = OTHERLIB.util.collections,
// private properties
privateVar = "private",
// methods
privateMethod = function() {
var one = 1,
two = 2,
three = 3;