Skip to content

Instantly share code, notes, and snippets.

View sneeu's full-sized avatar
🦀
Hi

John Sutherland sneeu

🦀
Hi
View GitHub Profile
@sneeu
sneeu / requirements
Last active August 29, 2015 13:58 — forked from judy2k/gitignore
#!/usr/bin/env bash
# To add two items to the current .gitignore file:
# requirement Django South
#
# To sort and de-dupe the current .gitignore file:
# requirement
args=( $@ )
args_len=${#args[@]}
requirements_file=${args[args_$len-1]}
@sneeu
sneeu / circles.py
Created May 2, 2012 11:58 — forked from anonymous/gist:2576078
Generate Hirst–like circles
import datetime
import hashlib
from PIL import Image, ImageDraw
def circles(across, down, radius):
# Scale the image up by 4, to anti-alias.
scale = 4
render_radius = scale * radius