Skip to content

Instantly share code, notes, and snippets.

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

What would you like to do?
def write(content, private_gist)
url = URI.parse('')
req = Net::HTTP.post_form(url, data(nil, nil, content, private_gist))
created = copy(req['Location'])
"#=> #{ created }\n\n#{ content }"
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.