Nice status buttons you can add to your README file in your Github repositories to show your project’s current status, fetched from StillMaintained:
For a live demo, check out StillMaintained’s own README.
------------------------------------------------------------ | |
/Users/nvie/.virtualenvs/dash/bin/pip run on Wed Jun 6 14:45:52 2012 | |
Obtaining pandas from git+git://github.com/pydata/pandas.git@master#egg=pandas | |
Found command 'git' at '/usr/local/bin/git' | |
Running command /usr/local/bin/git config remote.origin.url | |
git://github.com/pydata/pandas.git | |
Clone in /Users/nvie/.virtualenvs/dash/src/pandas exists, and has correct URL (git://github.com/pydata/pandas.git) | |
Updating /Users/nvie/.virtualenvs/dash/src/pandas clone (to master) | |
Running command /usr/local/bin/git fetch -q |
I have a tattoo of a frog on the top of my right foot. I drew him myself. When | |
people ask me why I always say that when I take a step, he hops. | |
But there’s a story behind that. | |
I was tree planting one year. While planting you need to move fast, the more | |
trees in the ground the more money you would make. I was never all that great | |
at it but I stuck with it and at the very least I kept going. | |
One rainy day, on a hill surrounded by tree stumps and torn up branches, |
def composition(f, *rest): | |
"""Creates the functional composition for the given functions.""" | |
if len(rest) == 0: | |
return f | |
def _comp(*args, **kwargs): | |
g = composition(*rest) | |
return g(f(*args, **kwargs)) | |
return _comp |
from gzip import GzipFile | |
from wsgiref.headers import Headers | |
import re | |
import cStringIO as StringIO | |
# Precompile the regex to check for gzip headers | |
re_accepts_gzip = re.compile(r'\bgzip\b') | |
# Precompile the regex to split a comma delimitered string of Vary headers |
# | |
# .zshenv | |
# .zshenv is the 1st file zsh reads; it's read for every shell, even if | |
# started with -f (setopt NO_RCS) | |
# .zprofile | |
# read after zshenv, if the shell is a login shell | |
# .zshrc | |
# read after zprofile, if the shell is an interactive shell | |
# .zlogin | |
# read after zshrc, if the shell is a login shell |
import signal | |
class JobTimeoutException(Exception): | |
pass | |
class death_pentalty_after(object): | |
def __init__(self, timeout): | |
self._timeout = timeout |
nvie@Turkish % cat numargs | |
#!/bin/sh | |
echo $# | |
nvie@Turkish % yes moo | xargs ./numargs | |
5000 | |
5000 | |
5000 | |
5000 | |
5000 | |
5000 |
def iter_ellipse_points(cx, cy, rx, ry, filled=False): | |
"""For details, refer to the John Kennedy paper on efficiently drawing the | |
pixels of an ellipse: http://homepage.smc.edu/kennedy_john/belipse.pdf | |
""" | |
assert rx > 0, 'Cannot compute ellipse points with zero radius.' | |
assert ry > 0, 'Cannot compute ellipse points with zero radius.' | |
# 2a2 and 2b2 are the 2*a^2 and 2*b^2 terms (constants) | |
_2a2, _2b2 = 2 * rx * rx, 2 * ry * ry |
#import <SenTestingKit/SenTestingKit.h> | |
@implementation TestFoo | |
- (void)setUp | |
{ | |
[super setUp]; | |
// We use a in memory store instead of the real SQLite | |
// Store the model, coord and store in instance variables |
Nice status buttons you can add to your README file in your Github repositories to show your project’s current status, fetched from StillMaintained:
For a live demo, check out StillMaintained’s own README.