Skip to content

Instantly share code, notes, and snippets.

@dayfuaim
dayfuaim / checkForUndefinedCSSClasses.js
Created June 18, 2021 12:24 — forked from broofa/checkForUndefinedCSSClasses.js
ES module for detecting undefined CSS classes (uses mutation observer to monitor DOM changes). `console.warn()`s undefined classes.
/**
* Sets up a DOM MutationObserver that watches for elements using undefined CSS
* class names. Performance should be pretty good, but it's probably best to
* avoid using this in production.
*
* Usage:
*
* import cssCheck from './checkForUndefinedCSSClasses.js'
*
* // Call before DOM renders (e.g. in <HEAD> or prior to React.render())
@dayfuaim
dayfuaim / script-template.sh
Created November 19, 2021 10:48 — forked from m-radzikowski/script-template.sh
Minimal safe Bash script template - see the article with full description: https://betterdev.blog/minimal-safe-bash-script-template/
#!/usr/bin/env bash
set -Eeuo pipefail
trap cleanup SIGINT SIGTERM ERR EXIT
script_dir=$(cd "$(dirname "${BASH_SOURCE[0]}")" &>/dev/null && pwd -P)
usage() {
cat <<EOF
Usage: $(basename "${BASH_SOURCE[0]}") [-h] [-v] [-f] -p param_value arg1 [arg2...]
### Keybase proof
I hereby claim:
* I am dayfuaim on github.
* I am dayfuaim (https://keybase.io/dayfuaim) on keybase.
* I have a public key ASCgfO5S6Q1PHamU8yi-U5_3LPVkIsYjZwbJ_myQnMqLoQo
To claim this, I am signing this object:
@dayfuaim
dayfuaim / wordle-answers-alphabetical.txt
Created February 14, 2022 16:28 — forked from cfreshman/wordle-answers-alphabetical.txt
Wordle answers from source code in alphabetical order. And if you write a solver, here's a leaderboard! https://freshman.dev/wordle/#/leaderboard
aback
abase
abate
abbey
abbot
abhor
abide
abled
abode
abort
aahed
aalii
aargh
aarti
abaca
abaci
abacs
abaft
abaka
abamp