I hereby claim:
- I am 3kwa on github.
- I am egn (https://keybase.io/egn) on keybase.
- I have a public key whose fingerprint is 174B 5A36 EC17 5B65 DB5D 2432 7C7C 2503 A299 6FDB
To claim this, I am signing this object:
| """ | |
| A radix sort implementation to illustrate: | |
| + testing with doctest | |
| + __main__ | |
| + yield | |
| + refactoring for legibility (your future self may thank you) | |
| + Python is __magic__ | |
| + PEP 8 | |
| + ... |
I hereby claim:
To claim this, I am signing this object:
| """ | |
| Bootstrap in Python using numpy ... mind expanding! | |
| source: http://people.duke.edu/~ccc14/pcfb/analysis.html | |
| """ | |
| from collections import namedtuple | |
| import numpy |
| """ | |
| Turn key websocket broadcasting: POST a message on a channel it will be | |
| broadcasted to all the websockets listening on that channel. | |
| Channels are identified by the URL path e.g. connecting a websocket to | |
| /listen/to/a/channel registers the websocket on the channel to-a-channel. | |
| Symmetrically a POST on /broadcast/to/a/channel will send a message to all | |
| listeners on to-a-channel. |
| __pycache__ | |
| details.csv | |
| errors.csv | |
| *.pyc | |
| curl -O https://raw.github.com/pypa/pip/master/contrib/get-pip.py | |
| echo -e "Installing pip..." | |
| sudo python get-pip.py | |
| rm get-pip.py | |
| echo -e "Done." | |
| echo -e "Installing Python packages..." | |
| sudo pip install pytest | |
| sudo pip install selenium |
| { | |
| "metadata": { | |
| "name": "Python has R envy" | |
| }, | |
| "nbformat": 3, | |
| "nbformat_minor": 0, | |
| "worksheets": [ | |
| { | |
| "cells": [ | |
| { |
| #!/usr/bin/env python | |
| """ | |
| If you use landslide to create slideshows using markdown, you may have found | |
| yourself repeating endlessly: | |
| + save source document | |
| + switch to the terminal to run landslide | |
| + reload the generated html in your browser | |
| This QT (using webkit) based "application" monitor changes to the source file |
| # ctrl-b -> ctrl-a | |
| set -g prefix C-a | |
| # ctrl-a ctrl-a last window | |
| bind-key C-a last-window | |
| # we are humans numbering from 1 | |
| set -g base-index 1 | |
| # faster input (not waiting for escape) |