Created
June 8, 2011 07:56
-
-
Save RobinStamer/1014002 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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