This file contains hidden or 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
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| """ | |
| Monkey Patch for tornado | |
| """ | |
| import cProfile as profile | |
| from tornado.options import options | |
| from tornado.web import HTTPError |
This file contains hidden or 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
| import os | |
| import optparse | |
| import signal | |
| import time | |
| import tornado.httpserver | |
| import tornado.httpclient | |
| import tornado.simple_httpclient | |
| import tornado.curl_httpclient | |
| import tornado.ioloop |
This file contains hidden or 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 'rubygems' | |
| require 'sinatra' | |
| require 'pony' | |
| require 'haml' | |
| set :haml, {:format => :html5} | |
| set :public, File.dirname(__FILE__) | |
| set :views, File.dirname(__FILE__) | |
| # Create the page class and give it a title of Contact for the layout |
NewerOlder