Skip to content

Instantly share code, notes, and snippets.

Finished preparing.
Executing test 1
Executing test 2
Math module: maximmum 0.238082885742; minummum 0.166098117828; average 0.191208680471
Numpy module: maximmum 1.90435886383; minummum 1.6759428978; average 1.78847424189
from django.http import HttpResponse
_current_shutdown_middleware = None
# Used in situations where it must shutdown before it gets initialized
_pre_shutdown = False
class ShutdownMiddleware(object):
shutting_down = False
@CrazyPython
CrazyPython / index.html
Created December 7, 2012 23:21 — forked from worenga/index.html
A CodePen by Benedikt Wolters.
<!DOCTYPE html>
<html>
<h1>Conway's Game of Life</h1>
<canvas id="c"></canvas>
</html>
@CrazyPython
CrazyPython / grid.py
Created December 7, 2012 23:09
Useful libary of snippets(help improve)
"version .1 supports __getitem__ and __setitem__ and fill and fillrect"
"version .2 supports __str__ and __dict__"
"""
version .3
full iteriator support
__len__ and __contains__
added documentation
__setitem__ and __setitem__supports slices with support for versions below 2.0(very unlikley)
"""