Skip to content

Instantly share code, notes, and snippets.

@jugyo
Created December 20, 2008 15:38
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 jugyo/38344 to your computer and use it in GitHub Desktop.
Save jugyo/38344 to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
require 'readline'
require 'open-uri'
Thread.new do
puts open('http://example.com/').read
end
while buf = Readline.readline("", true)
puts buf
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment