Skip to content

Instantly share code, notes, and snippets.

import { Component, Children } from 'react'
import PropTypes from 'prop-types'
let _globalState = {}
let _listener = () => 0
export function setGlobalState (name, value) {
_globalState[name] = value
_listener()
}
@tuckerconnelly
tuckerconnelly / .env.sh
Last active November 1, 2018 17:08
.env.sh for new machines
# source ~/env.sh
export PATH="/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
export EDITOR=atom
alias watch='watch '
alias git-deploy='git checkout staging && git pull && git checkout master && git pull && git merge staging -m "Merge branch 'staging'" && git push && git checkout staging'
alias nd="npm run dev"
@tuckerconnelly
tuckerconnelly / mac-setup.sh
Last active May 20, 2021 12:43
macOS New Setup Script
# I like to start fresh with a new mac, instead of using the Migration Assistant, because of all the cruft
# and useless software that may have accumulated.
#
# This script sets ups macs the way I like as a mostly JavaScript and Python developer. Feel free to copy
# and edit it as you see fit.
#
# Depends on a .env.sh file that sets up aliases here:
# https://gist.github.com/tuckerconnelly/2e69cbd3c6432c815e733f45c5827ad7
@tuckerconnelly
tuckerconnelly / append-to-atoms-styles.less
Created September 9, 2018 04:14
Dank Mono styles for atom
atom-text-editor,
atom-workspace {
font-family: "DankMono-Regular";
font-size: 12px;
font-weight: 400;
line-height: 1.5;
}
atom-panel.tool-panel {
font-size: 0.88em;

Keybase proof

I hereby claim:

  • I am tuckerconnelly on github.
  • I am tuckerconnelly (https://keybase.io/tuckerconnelly) on keybase.
  • I have a public key whose fingerprint is 840C 66BF E2A3 1F26 9218 FBF1 97B5 1A25 DA22 0885

To claim this, I am signing this object: