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
""" | |
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 = {} |
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
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"), |