Skip to content

Instantly share code, notes, and snippets.

View seanmhanson's full-sized avatar
Black Lives Matter. Amplify BIPoC voices. Dismantle Whiteness.

Seán Hanson seanmhanson

Black Lives Matter. Amplify BIPoC voices. Dismantle Whiteness.
View GitHub Profile
@seanmhanson
seanmhanson / stringEnumsAndObjects.ts
Created September 27, 2022 19:43
String Enums and Objects in TS
enum Muses {
CALLIOPE = 'calliope',
CLIO = 'clio',
EUTERPE = 'euterpe',
THALIA = 'thalia',
MELPOMENE = 'melpomene',
TERPSICHORE = 'terpsichore',
ERATO = 'erato',
POLYHYMNIA = 'polyhymnia',
URANIA = 'urania',
@seanmhanson
seanmhanson / setupStoreWithApi.ts
Created July 20, 2022 15:23
RTK Query Testing Utils - Setup API Store
import {
AnyAction,
combineReducers,
configureStore,
EnhancedStore,
Middleware,
Reducer,
} from '@reduxjs/toolkit';
import { CurriedGetDefaultMiddleware as GetDefaultMiddleware } from '@reduxjs/toolkit/dist/getDefaultMiddleware';
@seanmhanson
seanmhanson / superior-stock.md
Created March 7, 2022 02:18
Notes on preparation of Superior Stock (上湯)

Superior Stock (上湯, shàng tāng)

There are so many different recipes, approaches, and flavor profiles that can make up a superior stock, but all have a few things in common: complexity, clarity, a silky smooth mouth-feel, and a higher gelatin content than a regular chicken broth.

These are my own notes on the ways I typically make my stock, though I often make do with what I have accumulated and what I pick up on monthly trips into Queens to my favorite Chinese supermarket that carries all the otherwise hard-to-find goodies I'm in love with. This stock does take time, but it doesn't need to cost a ton, and is an exquisite replacement for chicken broth/stock in most any recipe, Chinese or otherwise.

Ingredients

I think of ingredients in a superior stock as basically falling into the categories of actual meat, bones or other leftovers saved for stock, and seasoning/dried goods. What actually makes these up changes based off what I have.

Chicken

Wings and Legs are a must, and I save them when breakin

@seanmhanson
seanmhanson / Instant Pot Bubur Ayam
Created August 23, 2021 00:16
Recep Instant Pot Bubur Ayam
# Instant Pot Bubur Ayam (Chicken Coconut Congee)
Adapted from:
- Instant Pot Congee, [Budget Bytes](https://www.budgetbytes.com/instant-pot-congee-jook/)
- Bubur Ayam, from *Coconut & Sambal*, Lara Lee
- Nasi Uduk, from *Coconut & Sambal*, Lara Lee
## Ingredients
### Congee & Base
- 1 cup jasmine rice
- 1in ginger, peeled and thinly sliced
@seanmhanson
seanmhanson / Soto Ayam.md
Last active August 4, 2021 16:12
Recep Soto Ayam

Soto Ayam (Javanese Chicken Soup)

Adapted from:

  • Soto Ayam, from Coconut & Sambal, Lara Lee
  • Indonesian Chicken Soup, from New York Times Cooking, Julia Moskin and James Oseland
  • Opor Ayam, from New York Times Cooking, Tejal Rao and Retno Pratiwi

Ingredients

Stock / Base

  • 3lbs chicken, quartered
  • 3 lemongrass stalks, bruised, split, and tied in a knot
@seanmhanson
seanmhanson / leavesToSaplings.zs
Created January 17, 2021 05:15
A crafttweaker recipes script to map 3 x 3 leaves into the corresponding saplings
# Convert 3 x 3 leaves into a corresponding sapling
#
# This includes support for:
# - Vanilla MC
# - Quark
# - Biomes o' Plenty
# - Defiled Lands
# Willow
recipes.addShaped(
@seanmhanson
seanmhanson / git-commit-message
Last active November 1, 2019 16:10
Custom git command to prefix commit messages with branch and optionally push
#!/bin/sh
while getopts ":ahlp" opt; do
case ${opt} in
h ) echo "Usage: git commit-message [-a] [-h] [-l] [-p] <message>"
echo "[-a] stage all changed files before committing"
echo "[-h] display help and usage (you are here)"
echo "[-l] push using force-with-lease after committing"
echo "[-p] push after committing"
exit 0
@seanmhanson
seanmhanson / git-open.sh
Last active October 28, 2019 15:12
Git Command to stash changes, pull master, and open a new branch
#!/bin/sh
if ! git diff-index --quiet HEAD --; then
echo 'Uncommitted local changes detected. Stashing...'
git stash
fi
echo 'Pulling Master'
git checkout master
git pull origin master
@seanmhanson
seanmhanson / git-push-up
Last active November 1, 2019 16:11
Custom git command to push to a remote branch matching the local branch name
#!/bin/sh
while getopts ":hfl" opt; do
case ${opt} in
h ) echo "Usage: git push-up [-h] [-f] [-l]"
echo "[-f] push using --force"
echo "[-h] display help and usage (you are here)"
echo "[-l] push using --force-with-lease"
exit 0
;;
@seanmhanson
seanmhanson / git-rebase-master
Last active November 1, 2019 16:10
Custom command to rebase a branch off master and optionally stash and pop local changes, or push to remote after
#!/bin/sh
while getopts ":hips" opt; do
case ${opt} in
h ) echo "Usage: git rebase-master [-h] [-i] [-p] [-s]"
echo "[-h] display help and usage (you are here)"
echo "[-i] use an interactive rebase with master"
echo "[-p] push using force-with-lease after rebasing"
echo "[-s] stash changes before and pop after"
exit 0