Skip to content

Instantly share code, notes, and snippets.

View snippet.rb
# Copyright 2008 Chris Wanstrath
# Taken from defunkt's gist repository: http://github.com/defunkt/gist/tree/master
require 'open-uri'
require 'net/http'
module Gist
extend self
@@gist_url = 'http://gist.github.com/%s.txt'