Created
November 16, 2012 14:05
-
-
Save pyrobot/4087605 to your computer and use it in GitHub Desktop.
me in a nutshell
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 person = (function(){ | |
return new function() { | |
this.name = 'Justin'; | |
} | |
})(); | |
(function(person){ | |
var type = person.type = {}; | |
type['job'] = 'JavaScript Developer'; | |
type['likes'] = ['Closures', 'Anonymous Functions']; | |
(function(additionally){ | |
additionally.likes.push('Kicking Ass'); | |
additionally.likes.push('Chewing Gum'); | |
(function(){ | |
additionally.doesNotCurrentlyPossess = | |
additionally.likes | |
.slice(3) | |
.join('') | |
.split(' ')[1]; | |
setTimeout(function(){ | |
console.log(person); | |
}, 1); | |
})(additionally); | |
})(type); | |
})(person); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
runme:
git clone git://gist.github.com/4087605.git gist-life.js && node gist-life.js/life.js