Skip to content

Instantly share code, notes, and snippets.

@marcoow
Last active January 5, 2018 12:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marcoow/5228177 to your computer and use it in GitHub Desktop.
Save marcoow/5228177 to your computer and use it in GitHub Desktop.
require 'net/http'
require 'uri'
lang = 'ruby'
code = 'class Test; end'
response = Net::HTTP.post_form(URI.parse('https://pygments.simplabs.com/'), { 'lang' => lang, 'code' => code })
puts response.body
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment