Skip to content

Instantly share code, notes, and snippets.

@ahoward ahoward/gist:29918
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))
created = copy(req['Location'])
"#=> #{ created }\n\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.