Skip to content

Instantly share code, notes, and snippets.

🚍
' DROP TABLE user_statuses; --

Rich T. rtt

🚍
' DROP TABLE user_statuses; --
Block or report user

Report or block rtt

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
@rtt
rtt / humans.txt
Last active Apr 8, 2018 — forked from jessmatthews/humans.txt
New Humans.txt
View 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
View average_image_color.py
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]
You can’t perform that action at this time.