Skip to content

Instantly share code, notes, and snippets.

@arisolt
Created January 27, 2013 20:40
Show Gist options
  • Save arisolt/4650357 to your computer and use it in GitHub Desktop.
Save arisolt/4650357 to your computer and use it in GitHub Desktop.
var fs = require ('fs'),
async = require ('async');
var q = async.queue(function (task, callback){
fs.appendFile('UIDs.txt', task.value + '\n');
callback();
}, 250);
for (i = 1; i <= 1972100; i++) {
q.push({'value' : i}, function (err) {});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment