123 karma · joined March 17, 2013
Web Fanatic.
http://grant.cm
```
game = new GameManager(8, KeyboardInputManager, HTMLActuator, LocalScoreManager); setInterval(function (){ for(var i =0; i < 100; i++){game.move(Math.floor(Math.random()*4));}},1000)
```
:)
http://hnplays2048.herokuapp.com/
Check it out! Or clone it! https://github.com/grant/hnplays2048
* How not to write an API
* Nest is launching an API
Kidding aside, I'm excited to see interesting uses of Nest's API in the near future.
alias g='git'
alias pull='git pull origin master'
alias push='git push origin master'
alias gc='git commit -m $1'
alias ga='git add -A'
# Adds all and commits (gg 'Commit message')
function gg () {
git add -A;
git commit -m "$1";
git push origin master;
}alias gs='git status'
alias gd='git diff --color'
alias gdc='git diff --cached'
alias gstat='git diff --stat'
I don't think your talking about this one but still pretty interesting.
I remember last year I got a similar question from both Twitter and Fb. It's really just a buckshot. Sometimes you'll get a problem that comes easy and sometimes you'll be sitting there dumbstruck.
Best of luck with your future interviews.
A real innovation would be finding a practical use for this type of technology (or a spin of it) in large-scale projects.
https://www.hnsearch.com/search#request/all&q=togetherjs&sor...