Skip to content

Instantly share code, notes, and snippets.

Avatar

Rick Lubbers goldenice

View GitHub Profile
View gist:9855236
### Keybase proof
I hereby claim:
* I am goldenice on github.
* I am superice (https://keybase.io/superice) on keybase.
* I have a public key whose fingerprint is 9D03 274C C273 3186 7406 822A 5B8E 9DB7 1C73 8087
To claim this, I am signing this object:
@goldenice
goldenice / example.js
Last active Nov 14, 2015
Generic self contained 'concurrent' worker in javascript
View example.js
var request = require('request');
var genericMultiWorker = require('./genericmultiworker.js');
var TARGET_URL = 'http://example.com/';
// Example: POSTing to a URL with a maximum of 5 concurrent requests
var addToWorker = genericMultiWorker(5, function(obj, callback) {
request.post(TARGET_URL, obj, callback);
});
View keybase.md

Keybase proof

I hereby claim:

  • I am goldenice on github.
  • I am superice (https://keybase.io/superice) on keybase.
  • I have a public key whose fingerprint is C2BA A6AB C307 3E44 EED1 03EC 22E3 E864 48FF B21A

To claim this, I am signing this object: