Skip to content

Instantly share code, notes, and snippets.

@ashumeow
Created November 15, 2013 23:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ashumeow/7493171 to your computer and use it in GitHub Desktop.
Save ashumeow/7493171 to your computer and use it in GitHub Desktop.
Sample Gist. (^_^)
require 'open-uri'
kittens = open('http://placekitten.com/')
response_status = kittens.status
response_body = kittens.read[559, 441]
puts response_status
puts response_body
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment