Skip to content

Instantly share code, notes, and snippets.

View shivanarrthine's full-sized avatar

Shiva Narrthine shivanarrthine

View GitHub Profile
@max-mapper
max-mapper / index.js
Created October 24, 2012 20:05
fetch images and store in pouchdb
var path = require('path')
var Pouch = require('pouchdb')
var async = require('async')
var request = require('request')
var queue = async.queue(queueWorker, 5) // 5 requests at a time
var imageURLs = [
"http://substack.net/images/ben.png",
"http://substack.net/images/bed.png"
]