Skip to content

Instantly share code, notes, and snippets.

@wayhome
wayhome / tornado_patch.py
Created August 5, 2011 05:00
profile patch for tornado
#!/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
@eklitzke
eklitzke / httpbench.py
Created June 15, 2011 20:16
simple tornado httpclient benchmark
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
@ghickman
ghickman / _contact.rb
Created July 4, 2010 17:23
Jekyll Contact Form with Sinatra
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