Skip to content

Instantly share code, notes, and snippets.

@gildo
Created December 7, 2010 21:46
Show Gist options
  • Save gildo/732476 to your computer and use it in GitHub Desktop.
Save gildo/732476 to your computer and use it in GitHub Desktop.
require 'net/http'
puts Net::HTTP.get_response(URI.parse("http://wa.la/shorten.php?longurl=#{ARGV[0]}")).body
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment