Skip to content

Instantly share code, notes, and snippets.

View mutewinter's full-sized avatar

Jeremy Mack mutewinter

View GitHub Profile
@mutewinter
mutewinter / package.json
Created October 4, 2016 21:28
Use Jest with CoffeeScript
{
"jest": {
"moduleFileExtensions": [
"js",
"json",
"jsx",
"node",
"coffee"
],
"preprocessorIgnorePatterns": [ ],
@mutewinter
mutewinter / commit_format_examples.txt
Created March 19, 2014 18:52
Examples of my commit format.
chore: add Oyster build script
docs: explain hat wobble
feat: add beta sequence
fix: remove broken confirmation message
refactor: share logic between 4d3d3d3 and flarhgunnstow
style: convert tabs to spaces
test: ensure Tayne retains clothing
@mutewinter
mutewinter / commit_format.txt
Created March 19, 2014 18:52
My commit message format.
feat: add hat wobble
^--^ ^------------^
| |
| +-> Summary in present tense.
|
+-------> Type: chore, docs, feat, fix, refactor, style, or test.
@mutewinter
mutewinter / imageSizes.ts
Last active September 11, 2022 17:56
Utility to help generate image sizes for the Next Image component when using Tailwind via Twin.macro
import { theme } from 'twin.macro';
function minMediaCondition(minWidth: string, width: string) {
return `(min-width: ${minWidth}) ${width}`;
}
type Screens = 'sm' | 'md' | 'lg';
// We only do sizes in terms of view width
type SizeWithScreen<T extends Screens> = [screen: T, width: `${string}vw`];
@mutewinter
mutewinter / README.md
Last active December 8, 2021 11:01
Prevent Double Tap Zoom in React for Rapidly Tapped Buttons

Prevent Double Tap Zoom in React for Rapidly Tapped Buttons

Touch delay is [a thing of the past][td], but accidental zooming is here to ruin your day. Ever tapped a button quickly on iOS and experienced a zoom instead of two taps? You're in the right place.

Before

Before

@mutewinter
mutewinter / Bluetooth Device Toggle.md
Created September 1, 2015 19:40
An Alfred workflow to toggle the connection to Bluetooth Devices by name.

Workflow icon Bluetooth Device Toggle

Alfred Workflow to toggle bluetooth devices. I use this workflow to toggle the connection to my Bluetooth Headphones.

Download Bluetooth Device Toggle

@mutewinter
mutewinter / Alfred 3 Workflows.md
Last active November 25, 2020 14:14
A list of Alfred 3 workflows I'm using.
@mutewinter
mutewinter / _view and save images.md
Last active July 13, 2020 15:38
View and save images from any page bookmarklet
@mutewinter
mutewinter / omnifocus.md
Created May 17, 2013 17:39
A list of articles and videos surrounding GTD and Omnifocus.
@mutewinter
mutewinter / focusAlert.lua
Created April 9, 2018 16:51
Hammerspoon App Focus Alert
-- --------------------------
-- Alert When App Not Focused
-- --------------------------
local alertInSeconds = 60 * 20
local alertAppName = 'App You Want to Focus Here'
local alertTimer
local function stopTimerAlertTimer()