Last active
January 5, 2018 12:57
-
-
Save marcoow/5228177 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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