Skip to content

Instantly share code, notes, and snippets.

View wgottschalk's full-sized avatar

William Gottschalk wgottschalk

  • Snap Inc.
  • Los Angeles
View GitHub Profile
import PropTypes from 'prop-types';
type Omit<T, K> = Pick<T, Exclude<keyof T, K>>;
type Defined<T> = T extends undefined ? never : T;
/**
* Get the type that represents the props with the defaultProps included.
*
* Alternatively, we could have done something like this:
@wgottschalk
wgottschalk / setup-gh-cli-auth-2fa.md
Created March 15, 2020 04:31 — forked from ateucher/setup-gh-cli-auth-2fa.md
Setup git on the CLI to use 2FA with GitHub

These are instructions for setting up git to authenticate with GitHub when you have 2-factor authentication set up. This authentication should be inherited by any GUI client you are using. These are intentionally brief instructions, with links to more detail in the appropriate places.

  1. Download and install the git command-line client (if required).

  2. Open the git bash window and introduce yourself to git (if required):

    git config --global user.name 'Firstname Lastname'
    git config --global user.email 'firstname.lastname@gov.bc.ca'
    
@wgottschalk
wgottschalk / list.md
Created November 2, 2020 20:12 — forked from ih2502mk/list.md
Quantopian Lectures Saved