Skip to content

Instantly share code, notes, and snippets.

View rtt's full-sized avatar
🚍
' DROP TABLE user_statuses; --

Rich Taylor rtt

🚍
' DROP TABLE user_statuses; --
View GitHub Profile
@rtt
rtt / humans.txt
Last active April 8, 2018 02:19 — forked from jessmatthews/humans.txt
New Humans.txt
# humanstxt.org/
# The humans responsible & technology colophon
# CONDE NAST BRITAIN - DIGITAL
6th and 7th Floor, Vogue House, Mayfair, London.
... occasionally also The Haunch of Venison Yard
# TECH TEAM
@rtt
rtt / average_image_color.py
Created April 24, 2012 12:50 — forked from olooney/average_image_color.py
Average Image Color
from PIL import Image
def average_image_color(filename):
i = Image.open(filename)
h = i.histogram()
# split into red, green, blue
r = h[0:256]
g = h[256:256*2]
b = h[256*2: 256*3]