Skip to content

Instantly share code, notes, and snippets.

View built's full-sized avatar

Matt Youell built

View GitHub Profile
@built
built / languagefeatures.txt
Last active December 21, 2015 15:09
A running list of features from Python and Ruby and others that I'd like to see in either one, or a hybrid. Suggestions welcome.
From Python
-------------------------------------------
List comprehensions (and set/dictionary comprehensions too)
Decorators*
Implicit truthiness for values and containers (False: empty string, empty list, None, etc.)
Formatting w/o need to count braces or parens (much)
English keywords for logic operators (or, and, not, is)
Friendlier ternary syntax. (return x if x else y)
From Ruby
@built
built / gist:7163980
Created October 26, 2013 00:49
10 Signs You Spend Too Much Time On The Internet
1. You followed this link.
2. You followed this link.
3. You followed this link.
4. You followed this link.
5. You followed this link.
6. You followed this link.
7. You followed this link.
8. You followed this link.
9. You followed this link.
10. You shared this link with someone else.
@built
built / gist:7325790
Created November 5, 2013 20:37
A glimpse of why Markus' Ruby hangman is fun.
def NSA.target(obj,&block)
#
# TODO: Implement this test some day
# return if obj.domestic? && !warrent_issued?
@built
built / gist:7535343
Last active December 28, 2015 17:19
Have you read this book?
I'm trying to figure out what sci-fi book I read in junior high, about 25 years ago.
The book is post-apocalyptic although I don't know the nature of the apolcalypse: either
nuclear and/or environmental. The story centers around a young man who lives with his
father. They live in some sort of oppressive society and have to keep things (or
people?) hidden beneath their house. I think they grow their own food down there, which
is against the law. They use the dirt they've dug up as sound insulation in their walls.
Something is wrong with the air and they can't always be outside, or they need special
breathing gear. I don't remember anything about the story arc, but at the end they go
out to the desert and find a hatch that takes them to a passenger jet that is buried
http://oi43.tinypic.com/2r2vz3r.jpg
@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,
@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 / 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: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 / 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'