Skip to content

Instantly share code, notes, and snippets.


Block or report user

Report or block j0hnsmith

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View bumpme
Tue Jul 10 13:57:43 UTC 2018

Keybase proof

I hereby claim:

  • I am j0hnsmith on github.
  • I am j0hnsmith ( on keybase.
  • I have a public key ASDEKuJ9N5r2DM7_FhmRYtHmeN_roQLNE0E1ZYDV0S8TVQo

To claim this, I am signing this object:

j0hnsmith / Dockerfile
Created Oct 13, 2014
View Dockerfile
FROM phusion/baseimage:0.9.13
ADD run /etc/service/foo/run
ADD log_run /etc/service/foo/log/run
CMD ["/sbin/my_init"]

Bubble charts encode data in the area of circles. Although less perceptually-accurate than bar charts, they can pack hundreds of values into a small space. Implementation based on work by Jeff Heer. Data shows the Flare class hierarchy, also courtesy Jeff Heer.

j0hnsmith / pre_compile
Created Sep 11, 2013
Install node & npm in a Heroku Python project. The official Heroku Python buildpack now has (experimental) support for a pre_compile hook, this pre_compile script installs node & npm. Put it in bin/pre_compile in your project then npm packages in npm_requirements.txt will be installed automatically, conceptually similar to the way Python package…
View pre_compile
#!/usr/bin/env bash
set -eo pipefail
curl -s -L -o tmp-nodejs.tar.gz $NODE_ARCHIVE
tar -zxvf tmp-nodejs.tar.gz > /dev/null
rm tmp-nodejs.tar.gz
j0hnsmith /
Last active Dec 17, 2015
Pie Chart Update, IV
j0hnsmith /
Last active Dec 17, 2015
Pie Chart Update, III

I'm continuting mbostocks's series of gists about pie charts.

This variation of a donut chart demonstrates how to add/remove slices or move between datasets of differing lengths with transitions. Clicking the radio buttons changes the displayed metric. Note how the new slice enters anticlockwise from the 'end' of the pie chart.

Previous: Animated transition. Next: Nice initial transition.

j0hnsmith /
Created Apr 19, 2013
delete all files from a S3 bucket
#!/usr/bin/env python
from gevent import monkey
import sys
import optparse
from datetime import datetime
import gevent
from gevent.pool import Pool
You can’t perform that action at this time.