Skip to content

Instantly share code, notes, and snippets.

@DamirSvrtan
Created May 15, 2012 01:29
Show Gist options
  • Save DamirSvrtan/2698423 to your computer and use it in GitHub Desktop.
Save DamirSvrtan/2698423 to your computer and use it in GitHub Desktop.
ZR
require 'sinatra'
require 'rubygems'
require 'httparty'
require 'net/http'
require 'base64'
set :dump_errors, false
class Representative
include HTTParty
end
get '/' do
begin @var = Representative.get('http://0.0.0.0:4569/')
end
rescue Exception => msg
puts msg.message
end
erb :index
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment