Joined July 2012
·
Posted to
Using poll Instead of sleep to Delay a Program
over 1 year
ago
Or you could use "usleep" (takes microseconds as input)
Posted to
Zsh function to pretty print json in shell
over 1 year
ago
Shameless self promotion ahead
I hacked a simple nodejs module for doing precisely that https://github.com/tralamazza/prettyson
Posted to
~~ is faster than Math.floor()
over 1 year
ago
True, but it clamps to 32 bit integer, so careful with big numbers ;)
Posted to
Effective deep copy of javaScript objects
over 1 year
ago
It seems it really depends on object size. It would be cool if jsperf had an option to map a variable to an axis (i.e. object size as 'x').
Posted to
Install an npm module in a Meteor app
over 1 year
ago
Cool tip, I would just be careful with some modules as meteor is fiberized.
Posted to
Vundle - no more vim plugins as git submodules
over 1 year
ago
Vundle is indeed a must have for any vim user. To update all your plugins type :BundleInstall!
Posted to
Parsing json responses the lazy (as in I-hate-if's) way
over 1 year
ago
@guido thanks :) and may the laziness be with you too
Posted to
Parsing json responses the lazy (as in I-hate-if's) way
over 1 year
ago
Nope, in the case where obj.foos has only 1 object, you want an array with 1 item. That would be case #1.
Achievements
689 Karma
55,710 Total ProTip Views
Raven
Have at least one original repo where some form of shell script is the dominant language
Forked
Have a project valued enough to be forked by someone else
Epidexipteryx 3
Have at least three original repo where C++ is the dominant language
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
Walrus
The walrus is no stranger to variety. Use at least 4 different languages throughout all your repos
Charity
Fork and commit to someone's open source project in need
Mongoose 3
Have at least three original repos where Ruby is the dominant language
Mongoose
Have at least one original repo where Ruby is the dominant language
Cub
Have at least one original jQuery or Prototype open source repo
Honey Badger 3
Have at least three Node.js specific repos
Honey Badger
Have at least one original Node.js-specific repo
Epidexipteryx
Have at least one original repo where C++ is the dominant language
Installs latest chef-solo
EC2 Provider