Skip to content

Instantly share code, notes, and snippets.

@pyrobot
Created November 16, 2012 14:05
Show Gist options
  • Save pyrobot/4087605 to your computer and use it in GitHub Desktop.
Save pyrobot/4087605 to your computer and use it in GitHub Desktop.
me in a nutshell
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);
@pyrobot
Copy link
Author

pyrobot commented Nov 16, 2012

runme:
git clone git://gist.github.com/4087605.git gist-life.js && node gist-life.js/life.js

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment