Skip to content

Instantly share code, notes, and snippets.

View mmwtsn's full-sized avatar

Maxwell Watson mmwtsn

View GitHub Profile
@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 / 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

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:

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 / pattern-library.md
Last active January 4, 2016 03:59
Notes from the first NEUE DS => Pattern Library meeting with Mr. Furnes

Pattern Library

Decisions

  1. HTML classes allow for rapid prototyping content, however, they tie presentation and content. For that reason we're electing to move the lion's share of the work to SCSS mixins and functions. See: Bourbon Neat.
  2. Documentation will happen both inline amongst the source code and in a manually updated pattern library for now. In the research conducted thus far, no automated solutions have met our standards. If one comes along having living documentation that is automatically generated is, in theory, preferable. Worth noting that Bootstrap is manually documented. If it's good enough for Twitter...
  3. Our current grid system and all HTML classes under "Layout" are going to be reworked by Mr. Furnes. We're looking to simplify our approach.
  4. Further work on NEUE DS is not expected. For that reason all Pattern Library work will happen on feature branches. In order to preserve the development environment for Do Something's current Drupal installation, a local copy of NEUE
@mmwtsn
mmwtsn / html-classes.scss
Created January 3, 2014 19:33
Visualization of three CSS options.
// 1. NO MODIFIER CLASSES
// <header class="header">A Header</header>
// <footer class="footer">A Footer</footer>
.header,
.footer {
width: 100%;
max-width: 960px;
margin: 0 auto;
background: $gray;
@mmwtsn
mmwtsn / official-npm.md
Created December 2, 2013 19:56
Official NPM Package Stamp
@mmwtsn
mmwtsn / branches.txt
Created June 25, 2013 17:33
Current branches off DoSomething/DoSomething-7.x as of 6/25
# Aaron
22 minutes ago Aaron Schachter /origin/campaign_login
7 days ago Aaron Schachter /origin/ds_sub_test_queue
4 weeks ago Aaron Schachter /origin/user_reg_template
# Admin (?)
5 weeks ago admin@dosomething.org /origin/picsforpets
# Dave
3 hours ago David Furnes /origin/qa