Skip to content

Instantly share code, notes, and snippets.

@wlaurance
Last active December 27, 2015 17:49
Show Gist options
  • Select an option

  • Save wlaurance/7365571 to your computer and use it in GitHub Desktop.

Select an option

Save wlaurance/7365571 to your computer and use it in GitHub Desktop.
github alphabet
node_modules
var request = require('request');
var async = require('async');
function iterator(letter, callback) {
request('https://github.com/' + letter,
function(e,r,b) {
var re = {};
re[letter] = r.statusCode;
callback(e, re);
});
}
var alphabet = "abcdefghijklmnopqrstuvwxyz";
function courier(a,b){
console.log(b);
}
async.map(alphabet, iterator, courier);
{
"name": "7365571",
"version": "0.0.0",
"description": "",
"main": "alphabet.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "https://gist.github.com/7365571.git"
},
"author": "",
"license": "BSD-2-Clause",
"bugs": {
"url": "https://gist.github.com/7365571"
},
"dependencies": {
"async": "~0.2.9",
"request": "~2.27.0"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment