Skip to content

Instantly share code, notes, and snippets.

Check out the tornado source.
Switch to the branch1.2.
Apply this patch:
diff --git a/website/website.py b/website/website.py
index 39b7aed..902be9a 100644
--- a/website/website.py
+++ b/website/website.py
@@ -49,6 +49,7 @@ settings = {
"template_path": os.path.join(os.path.dirname(__file__), "templates"),
"""
Test out 20 binary-search functions harvested from
http://reprog.wordpress.com/2010/04/19/are-you-one-of-the-10-percent/
See results at the bottom.
"""
import random
failures = {}