Skip to content

Instantly share code, notes, and snippets.

View built's full-sized avatar

Matt Youell built

View GitHub Profile
@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
@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: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 / 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:5572803
Created May 14, 2013 00:56
Freeman Dyson on Education
(From Slashdot Q&A http://science.slashdot.org/story/13/05/13/1410230/interviews-freeman-dyson-answers-your-questions)
How has your education helped or hindered you? You are the "ideal" educated man. In our (American) culture, we don't seem to be producing people devoted to learning, discovering, thinking, inventing, etc. What in your opinion can an educational system do to foster what you've become?
Dyson: I was extremely lucky because I came through the British education system during the war when everything was screwed up. The whole system depended on written examinations and we did not have enough ships to import paper. So there was no paper and no exams. Also there was a high shortage of teachers since all the young people were away fighting the war. As a result, I was in class only seven hours a week. A wonderful time to get an education. We had maximum freedom, and the kids learned more from one another than we would have learned from teachers.
The kids today spend far too much time in class and a
@built
built / gist:5558450
Last active December 17, 2015 05:29
Notes from first exposure to Go programming.
Meta about Tour of Go
Use of packages is nice.
Import syntax with quotes, as in Ruby. I don't like this. You quote the package name but then refer to the imported thing with a plain identifier? Why not omit the quotes so it is uniform?
Types after identifiers is weird, but I get the motivation. Should have gone all the way so everything works uniformly though.
Pointer syntax didn't have to be a star. Other options available.
Result parameters are interesting. But why do I have to say "return" at all?
@built
built / gist:5462795
Created April 25, 2013 20:18
My encoded twitter bio. It's fairly simple and a complete and utter waste of time.
0011011000110001001101110011001100110111001100110011011100110000001101100011010100110110011001010011011001100101001101100011100100110110001101010011011100110011
@built
built / Camus
Created February 4, 2013 17:15
Footnote from the Myth of Sisyphus
I have heard of an emulator of Peregrinos, a post-war writer who, after having finished his first book, committed suicide to attract attention to his work. Attention was in fact attracted, but the book was judged no good.
@built
built / wtf.js
Created October 29, 2012 22:17
The secret is to realize that there is no spoon.
if ( response && response.Status ) {
if ( response.Status.Status == 'OK' ) {
this.reloadBrowser();
} else {
console.log( response );
console.log( status );
this.reloadBrowser();
}
} else {
console.log( response );
@built
built / zeke.rb
Created July 5, 2012 01:48
Rearranging deck chairs on this resume.
class EzekielTemplin
def initialize
@birthdate = Date.parse('1983-06-29')
@gender = "male"
end
def age
#still derp
Date.today.year - @birthdate.year
end