Skip to content

Instantly share code, notes, and snippets.

@wwkeyboard
Created September 17, 2013 02:11
Show Gist options
  • Save wwkeyboard/6589272 to your computer and use it in GitHub Desktop.
Save wwkeyboard/6589272 to your computer and use it in GitHub Desktop.
ruby -r 'json' -r 'rest-client' -e "[JSON.parse(RestClient.get \"http://www.reddit.com/r/dadjokes.json\")['data']['children'].sample['data']].map{|j| puts \"#{j['title']} \n #{j['selftext']}\" }"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment