by radicalriddler · 6y ago · 0 comments
Trust me it is always difficult to restart work on pending projects, once you give it two minutes you'll get glued to it.
Just force yourself to get started.
comic_number=321; curl -L http://xkcd.com/"$comic_number"/info.0.json | jq '{title, number: .num, title, date: "\(.day)-\(.month)-\(.year)", description: .alt, image: .img}'
That took maybe a minute for me to write, vs. like 20 or so minutes for Go. I personally can get stuck in a such a paralysis of doing things the "right" way in a "real" language. So, it's nice to be able to bang out a prototype super quickly and then iterate from there if I want.edit: getting them all, because who can resist some fun code golf:
yes | awk 'BEGIN{count=1} {print count++;}' | head -n 2311 | xargs -I {} curl -sL http://xkcd.com/"{}"/info.0.json | jq '{title, number: .num, title, date: "\(.day)-\(.month)-\(.year)", description: .alt, image: .img}'https://unix.stackexchange.com/questions/17659/opening-multi...
cat sites-list | xargs -n1 firefox --new-tab