Skip to content

Instantly share code, notes, and snippets.

View mmwtsn's full-sized avatar

Maxwell Watson mmwtsn

View GitHub Profile

Types

A type is a collection of possible values. An integer can have values 0, 1, 2, 3, etc.; a boolean can have values true and false. We can imagine any type we like: for example, a HighFive type that allows the values "hi" or 5, but nothing else. It's not a string and it's not an integer; it's its own, separate type.

Statically typed languages constrain variables' types: the programming language might know, for example, that x is an Integer. In that case, the programmer isn't allowed to say x = true; that would be an invalid program. The compiler will refuse to compile it, so we can't even run it.

@mmwtsn
mmwtsn / Radiohead Time Signatures.md
Last active February 18, 2024 23:58
This is a Markdown-formatted version of a Pastebin.com upload.

Radiohead Time Signatures

This was originally authored by joelalcock1@gmail.com. Please e-mail him any corrections.

If you see a translation error from the original please let me know in the comment section below.

Albums

Pablo Honey (1993)

@mmwtsn
mmwtsn / steps.md
Last active September 29, 2016 18:07
Vim Python issue with Homebrew on OS X.

Background

This is an answer provided in a GitHub Issue that is preserved here.

Answer

An actual solution, for those breaking vim/macvim after "brew cleanup".

This will work if the current python is not the one your current vim/gvim/mvim is not linked to, check your vim and macvim version info (these might be separate homebrew packages), also make sure you update our brew so you'd use the latest packages:

What I Wish I'd Known About Equity Before Joining A Unicorn

Disclaimer: This piece is written anonymously. The names of a few particular companies are mentioned, but as common examples only.

This is a short write-up on things that I wish I'd known and considered before joining a private company (aka startup, aka unicorn in some cases). I'm not trying to make the case that you should never join a private company, but the power imbalance between founder and employee is extreme, and that potential candidates would