Skip to content

Instantly share code, notes, and snippets.

@Neurogami
Last active December 10, 2015 00:28
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 Neurogami/4351072 to your computer and use it in GitHub Desktop.
Save Neurogami/4351072 to your computer and use it in GitHub Desktop.
Thinking about hyper-active-require again http://www.neurogami.com/articles/The_year_of_living_dangerously/
require 'open-uri'
def require_gist2 raw_id
uri = "https://gist.github.com/raw/#{raw_id}/gistfile1.txt"
result = open(uri, "UserAgent" => "ruby::require_gist").read
eval result
end
gid = '4351053/a9feffd0835737b938ba4d1c7a0b3bd0248d3c15'
require_gist2 gid
puts machine_name.reverse
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment