Skip to content

Instantly share code, notes, and snippets.

@arisolt
Created January 27, 2013 21:22
Show Gist options
  • Save arisolt/4650591 to your computer and use it in GitHub Desktop.
Save arisolt/4650591 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', function (err) {
callback();
});
}, 250);
for (i = 73589; 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