Joined May 2011
·
Posted to
Sublime Text 2 - quick full screen
over 1 year
ago
Thanks!
Posted to
Scrape Site for JS Errors with Casper.js
over 1 year
ago
@dperrymorrow thanks!
PS: you've fixed it as "CapserJS" ;)
Posted to
Scrape Site for JS Errors with Casper.js
over 1 year
ago
s/CaserJS/CasperJS :)
Posted to
Promise Chains with Node.js
over 1 year
ago
You're welcome :) Now I'm looking back at the resulting code, I wonder if using map()
wouldn't be even more concise:
function get_all_the_things(things) {
return Q.all(things.map(function(thing) {
var deferred = Q.defer();
get_a_thing(thing, function(result) {
deferred.resolve(result);
});
return deferred.promise;
}));
}
Posted to
Promise Chains with Node.js
over 1 year
ago
Very nice post. As a side note, instead of writing loops like:
for (var i = 0; i < async_operations.length; i++) {
(function(i) {
//...
})(i);
});
You should consider using forEach
instead:
async_operations.forEach(function(op) {
//...
});
Achievements
221 Karma
2,215 Total ProTip Views
24PullRequests Participant
Sent at least one pull request during the first 24 days of December 2013
Forked 100
Have a seriously badass project that's been forked at least 100 times
Forked 50
Have a project with a thriving community of users that's been forked at least 50 times
Forked 20
Have an established project that's been forked at least 20 times
24PullRequests Participant
Sent at least one pull request during the first 24 days of December 2012
Kilo of Lemmings
Establish a space in the open source hall of fame by getting at least 1000 devs to watch a project
Octopussy
Have a repo followed by a member of the GitHub team
Altruist
Increase developer well-being by sharing at least 20 open source projects
Python 3
Have at least three original repos where Python is the dominant language
Kona
Have at least one original repo where CoffeeScript is the dominant language
Lemmings 100
Write something great enough to have at least 100 watchers of the project
Raven
Have at least one original repo where some form of shell script is the dominant language
Cub
Have at least one original jQuery or Prototype open source repo
Nephila Komaci 3
Have at least three original repos where PHP is the dominant language
Nephila Komaci
Have at least one original repos where PHP is the dominant language
Walrus
The walrus is no stranger to variety. Use at least 4 different languages throughout all your repos
Forked
Have a project valued enough to be forked by someone else
Charity
Fork and commit to someone's open source project in need
Python
Would you expect anything less? Have at least one original repo where Python is the dominant language
You should avoid waiting for an arbitrary amount of milliseconds for processing a next step, rather use waitFor* methods as they're more deterministic :)