Skip to content

Instantly share code, notes, and snippets.

View mmwtsn's full-sized avatar

Maxwell Watson mmwtsn

View GitHub Profile

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

@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:

@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)

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 / csv2json.js
Created October 20, 2015 20:36
Convert CSV line by line into JSON using streams in ES6.
import fs from 'fs'
import readline from 'readline'
let headers = []
let lines = 0
const rl = readline.createInterface({
input: fs.createReadStream('input.csv'),
output: fs.createWriteStream('output.json')
})
@mmwtsn
mmwtsn / _retina-images.scss
Created December 12, 2014 20:06
A comparison of `else` placements in a SCSS mixin.
// Bourbon _retina-images.scss via:
// https://raw.githubusercontent.com/thoughtbot/bourbon/502c2108dea1970ffeb4f91cb95b545d67bddfd0/app/assets/stylesheets/addons/_retina-image.scss
// Current version with @else on a new line
@mixin retina-image($filename, $background-size, $extension: png, $retina-filename: null, $retina-suffix: _2x, $asset-pipeline: $asset-pipeline) {
@if $asset-pipeline {
background-image: image-url("#{$filename}.#{$extension}");
}
@else {
background-image: url("#{$filename}.#{$extension}");
@mmwtsn
mmwtsn / postgresql-commands.md
Last active August 7, 2023 07:42
A list of commands for navigating PostgreSQL.

PostgreSQL Cheatsheet

Helpful Commands

Start/Stop Launch Agent

launchctl unload ~/Library/LaunchAgents/org.postgresql.postgres.plist
launchctl load ~/Library/LaunchAgents/org.postgresql.postgres.plist
@mmwtsn
mmwtsn / ibm-cloud-active-pages.txt
Created June 24, 2014 17:23
A list of IBM's Cloud Marketing Pages.
IBM Cloud
Active Pages
/index.html
/catalog.html
/iaas.html
/paas.html
/saas.html
/private-cloud.html
/consulting.html
@mmwtsn
mmwtsn / traver.md
Last active August 29, 2015 14:00
Traver's web development reading list.

Web Development

server-side

You should know two server-side languages, plus JavaScript. For each language, become familiar with one framework and one micro-framework or DSL.

language framework micro-framework
Python Django Flask
Ruby Rails Sinatra
JavaScript NodeJS ExpressJS