Skip to content

Instantly share code, notes, and snippets.

@rsayers
Created December 1, 2009 22:30
Show Gist options
  • Save rsayers/246709 to your computer and use it in GitHub Desktop.
Save rsayers/246709 to your computer and use it in GitHub Desktop.
#!/usr/local/bin/ruby
require "open-uri"
id=ARGV[0]
if !id then
puts "No id given"
else
begin
puts open("http://gist.github.com/#{id}.txt").read
rescue
puts "Error opening gist: #{id}"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment