Skip to content

Instantly share code, notes, and snippets.

View built's full-sized avatar

Matt Youell built

View GitHub Profile
@built
built / Singh.md
Last active March 13, 2016 06:17
Wiki-wander: Singh

(Wiki-wanders consist of me getting lost in Wikipedia for unreasonable amounts of time and then coming back to tell the tale.)

This wander started with an upsetting story about sentencing in the assault of a Sikh man in Chicago.

Google turned up little more, but did find a Sikh advocacy account on Twitter. One of their tweets showed a picture of the Canadian Defence Minister (a Sikh) meeting President Obama as part of the Trudeau delegation. One tweet noted that Sikhs can't serve in the US military and... wait, what? So off I went to wikipedia to read about Sikhs in the United States military.

Pretty soon I was reading about Bhagat Singh Thind and his struggle t

#!/usr/bin/env python
# A riff on https://gist.github.com/celoyd/dddc2f9e0ad7217a13e5
from skimage import io
from skimage.transform import resize
import numpy as np
from sys import argv
MAXINT = np.iinfo(np.uint8).max
To find the substring in the text
One needn't cast spells or a hex
Work back from the tail
And quickly you'll sail
If you can't find the character next
@built
built / gist:92e3b5192616a6c2d71f
Created August 12, 2014 04:48
The web.config of Staging
Saw this on FB, attributed to Paul Andrew Skaggs, an old co-worker.
---
Hello Buildmaster, my old friend
I've come to talk with you again
Because an updated connection string
Changed its config while I was sleeping
And the instance that was replaced by the DBAs
Still remains
@built
built / gist:5517fc6ff2ac45d5bff6
Created July 20, 2014 06:17
Walking the curry / object equivalence line in Python
to_image_name = "{.user_name}-{}-{}.png".format
# to_image_name is now a *function*.
# Use it later like so:
to_image_name(user, 32, 32)
# Which results in a string like: 'jsmith-32-32.png'
@built
built / gist:315b40f8562207e07f25
Last active May 13, 2018 23:33
Family-Friendly Movies in the tradition of classics from the 70s/80s
9 to 5
A Christmas Story
Adventures in Babysitting
Airplane!
An American Tail
Babe
Babe 2: Pig in the City
Back to the Future 1, 2, 3
Batteries Not Included
Bedknobs and Broomsticks
@built
built / California.md
Last active August 29, 2015 13:58
Wiki-wander: California

How these always start: Some incidental tickle in my brain.

Reading an article about Tesla. http://www.topgear.com/uk/photos/Maserati-Ghibli-takes-on-Model-S-2014-04-03

Triggers: "Italian" vs. "Californian" Immediately think of Ferris Bueller's Day Off and the GT California Always wondered about that. Was there an Italian fixation on California, or is California a more generic name than I thought?

@built
built / gist:9648804
Created March 19, 2014 18:59
Some LinkedIn url parameters
https://www.linkedin.com/people/pymk?goback=%2Enpv_8445316_*1_*1_name_bCd9_*1_*1_*1_193406*4I836413231*49_*1_*1_*1_*1_*1_*1_*1_*1_*1_*1_*1_*1_*1_*1_*1_*1_*1_*1_*1_*1_*1_*1_*1_*1_*1_*1_eml*5comm*4invm*5b*5profile*5newinvite_*1&trk=eml_inv_accept_non_email&report
@built
built / gist:9119634
Last active August 29, 2015 13:56
Father-in-law jokes
A man received the following text from his neighbor:
I am so sorry Bob. I've been riddled with guilt and I have to confess.
I have been tapping your wife, day and night when you're not around.
In fact, even more than you do. I'm not getting any at home, but that's no excuse.
I can no longer live with the guilt and I hope you will accept my sincerest apology
with my promise that it won't happen again.
The man, distraught, anguished and betrayed, went into his bedroom, grabbed his gun,
http://oi43.tinypic.com/2r2vz3r.jpg