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 Thing(v){ | |
this.value = v | |
this.children = [] | |
this.addChild = function(v){ | |
this.children.push(new Thing(v)) | |
} | |
this.butt = function(v){ | |
console.log(this.value) |
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
window.addEventListener( 'load', init ) | |
function init(){ | |
var controller = new Controller( new Model, new View ) | |
} | |
function Controller( model, view ){ | |
this.model = model | |
this.view = view | |
} |
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
# track && fetch && pull all remote branches | |
for remote in \`git branch -r\`; do git branch --track $remote; done | |
git fetch --all | |
git pull --all | |
# git filter to change email addresses globally | |
# can also replace with GIT_AUTHOR_EMAIL -- use `git log` to check | |
git filter-branch --commit-filter ' | |
if [ "$GIT_AUTHOR_NAME" = "Salar Khan" ]; | |
then |