Skip to content

Instantly share code, notes, and snippets.

@hassox
Forked from jsmestad/thing.rb
Created February 24, 2009 05:10
Show Gist options
  • Select an option

  • Save hassox/69428 to your computer and use it in GitHub Desktop.

Select an option

Save hassox/69428 to your computer and use it in GitHub Desktop.
def display
result = open(gist_url).read
out = result.scan(/document.write\('(.*|\s*)'\)/)[1]
out.nil? ? "Not Found" : out[0]
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment