I hereby claim:
- I am aearly on github.
- I am aearly (https://keybase.io/aearly) on keybase.
- I have a public key ASCYWSsEQQlBwEa7eM-I42XwIs3UcAMkYuJXEyIpai5R8go
To claim this, I am signing this object:
| async.eachLimit(files, 3, function (file, callback) { | |
| fs.readFile(file, function(err, contents) { | |
| if (err) return callback(err) | |
| doSomethingWith(contents) | |
| callback(); | |
| }) | |
| }, function (err) { | |
| // hooray we're done | |
| }) |
I hereby claim:
To claim this, I am signing this object:
| var async = require("async"); | |
| var functions = []; | |
| for(var i = 0; i < 10000; i++) { | |
| functions.push(function leaky(next) { | |
| function func1(cb) {return cb(); } | |
| function func2(callback) { | |
| if (true) { |
| /** | |
| * Annotated Gruntfile. | |
| * This builds a Backbone/Marionette application using Dust.js (Linkedin fork) as a | |
| * templating system, as well as some helpers from Foundation, with Browserify. | |
| * It also configures a watcher and static server with live reload. | |
| */ | |
| module.exports = function (grunt) { | |
| // This automatically loads grunt tasks from node_modules | |
| require("load-grunt-tasks")(grunt); |
| "use strict"; | |
| var LIVERELOAD_PORT = 35729; | |
| var lrSnippet = require("connect-livereload")({port: LIVERELOAD_PORT}); | |
| var mountFolder = function (connect, dir) { | |
| return connect.static(require("path").resolve(dir)); | |
| }; | |
| // # Globbing | |
| // for performance reasons we"re only matching one level down: | |
| // "test/spec/{,*/}*.js" |
| function asyncify(fn) { | |
| return function (option, callback) { | |
| var res; | |
| try { | |
| res = fn(option); | |
| } catch (err) { | |
| return callback(err); | |
| } | |
| callback(null, res); | |
| } |