Skip to content

Instantly share code, notes, and snippets.

@RobinStamer
Created June 8, 2011 07:56
Show Gist options
  • Select an option

  • Save RobinStamer/1014002 to your computer and use it in GitHub Desktop.

Select an option

Save RobinStamer/1014002 to your computer and use it in GitHub Desktop.
A xkcd.com logo
S http://imgs.xkcd.com/s/9be30a7.png
===
A Worst-Case Shopping
T Wait a minute. If I'm escaping from a submarine at 50 meters, then I'll *definitely* need a flashlight to find air pockets for gradual decompression on the way up. Time to start shopping professional dive lights.
S http://imgs.xkcd.com/comics/worst_case_shopping.png
===
A Selected Comics
S http://imgs.xkcd.com/s/a899e84.jpg
===
$ cat images.js
var pull = require('./api/puller').pull;
pull(process.argv[2] || 'http://xkcd.com', function($) {
$('img').each(function(k, v) {
for (var k1 in {alt:1,title:1,src:1}) {
if (!v[k1]) continue;
console.log('\t' + k1[0].toUpperCase() + '\t' + v[k1])
}
console.log('===')
})
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment