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
import time | |
class Timing(object): | |
def __init__(self): | |
self.timings = {} | |
self.col = self.__collector() | |
self.col.next() #coroutine syntax | |
def __collector(self): | |
while True: |
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
#!/bin/sh | |
# | |
# git-svn-diff -- SVN-compatible diff against the tip of the tracking branch | |
# | |
# ChangeLog | |
# | |
# Originally by http://mojodna.net/2009/02/24/my-work-git-workflow.html | |
# | |
# <mike@mikepearce.net> | |
# - <unknown changes> |
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
bootstrap-tooltip.js | |
bootstrap-popover.js | |
bootstrap-alert.js | |
bootstrap-button.js | |
bootstrap-carousel.js | |
bootstrap-collapse.js | |
bootstrap-dropdown.js | |
bootstrap-modal.js | |
bootstrap-scrollspy.js | |
bootstrap-tab.js |
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
import os | |
from werkzeug.exceptions import NotFound | |
from werkzeug.wrappers import Request, Response | |
from werkzeug.wsgi import SharedDataMiddleware, wrap_file | |
class Website(object): | |
def dispatch_request(self, environ, request): | |
filename = request.path if request.path != "/" else "index.html" |