Create _ext/
and _templates/
subdirectories.
Move edit_on_github.py
into the _ext/
subdirectory.
Move sourcelink.html
into the _templates/
subdirectory.
Add the following after the import sys, os
line :
#!/usr/bin/env python | |
# encoding: utf-8 | |
from __future__ import print_function | |
""" | |
imgcomp -- [re]compress an image multiple times, saving intermediate output | |
* https://en.wikipedia.org/wiki/JPEG | |
* https://en.wikipedia.org/wiki/Generation_loss | |
""" |
#!/usr/bin/env python | |
# encoding: utf-8 | |
from __future__ import print_function | |
from __future__ import division | |
""" | |
broadband_cap | |
============== | |
Calculate time to reach broadband cap with specified bandwidth speeds | |
Usage:: |
$ time python ./test_islice_performance.py | |
=============================================================================== | |
# PERF justification for https://github.com/pydata/pandas/issues/6700 | |
# 1000 times | |
# -10% = 10% speedup | |
# 20% = 20% slowdown | |
------------------------------------------------------------------------------- | |
def get_data(n=100000): | |
return ((x, x*20, x*100) for x in xrange(n)) |
### PowerShell script to install a minimal Workstation with Chocolatey | |
# https://chocolatey.org | |
## To Run This Script: | |
# 1. Download this PowerShell script | |
# * Right-click <> ("View Raw") and "Save As" to %USERPROFILE% (/Users/<username>) | |
# * If Cocolatey is not already installed, see | |
# "Uncomment to install Chocolatey" | |
# * If you would like to also install Anaconda | |
# (Python, IPython, lots of great libraries) |
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
from __future__ import print_function | |
""" | |
sqla2hdfstore | |
=============== | |
Input: | |
sqlalchemy uri |
#!/usr/bin/env python | |
# encoding: utf-8 | |
from __future__ import print_function | |
""" | |
clock_hands | |
__________________ | |
| 12 | | |
| | | |
| | | |
|9 0 3| |
#!/usr/bin/env python | |
from __future__ import print_function, division | |
""" | |
avgs.py | |
various implementations of 'streaming' simple "cumulative" / "momentary" mean | |
""" | |
import sys | |
try: |
.PHONY: default test | |
default: test | |
test: | |
python ./transaction_charts.py | |
open: | |
open ./test.html |