Skip to content

Instantly share code, notes, and snippets.

@ahoward ahoward/gist:29916
Created Nov 28, 2008

Embed
What would you like to do?
def write(content, private_gist)
url = URI.parse('http://gist.github.com/gists')
req = Net::HTTP.post_form(url, data(nil, nil, content, private_gist))
copy(req['Location']) + "\n#{ content }"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.