Last active
December 10, 2015 00:28
-
-
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/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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