Joined May 2011
·

Ricardo Tomasi

Grifo
·
Brazil
·
·
·

If you are having issues try adding "${PWD/#$HOME/~}\007" to your PS1, this will help iTerm interpret relative paths correctly.

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