Joined May 2011
·
Posted to
Concurrency in JS is easy: with Promises.
over 1 year
ago
The code formatting for this post is a bit off: http://cl.ly/image/0I1Y0v363m33
Posted to
~~ is faster than Math.floor()
over 1 year
ago
Not in all browsers. I'm running Chrome 24 and Math.floor() is slightly faster, the jsperf aggregate results already reflect that.
It used to be the case some years back that this would benefit canvas animations and games, but these days we are in the hundreds of millions of operations/second, it's not worth hurting readability for it.
Achievements
107 Karma
0 Total ProTip Views

Honey Badger 3
Have at least three Node.js specific repos

Lemmings 100
Write something great enough to have at least 100 watchers of the project

Forked 20
Have an established project that's been forked at least 20 times

Github Gameoff Participant
Participated in the Github Gameoff 2012 building a game based on git concepts of forking, branching, etc

Altruist
Increase developer well-being by sharing at least 20 open source projects

KO Contender
Participated in 2012 Node Knockout

Honey Badger
Have at least one original Node.js-specific repo

KO Contender
Participated in 2011 Node Knockout

Kona
Have at least one original repo where CoffeeScript is the dominant language

Forked
Have a project valued enough to be forked by someone else

Charity
Fork and commit to someone's open source project in need
If you are having issues try adding "${PWD/#$HOME/~}\007" to your PS1, this will help iTerm interpret relative paths correctly.