Skip to content

Instantly share code, notes, and snippets.

@erickmerchant
erickmerchant / checkup.sh
Last active March 27, 2022 18:07
a bash script I use to run npm audit, npm outdated, npm test, and git status on all my projects
BOLD='\033[1m'
RESET='\033[0m'
COLS=$(expr $(tput cols) - 4)
if [ $# -eq 0 ]
then
DIRECTORIES=*/;
else
DIRECTORIES=$@;
fi
@erickmerchant
erickmerchant / wordle-helper.js
Last active April 10, 2022 14:34
wordle helper
const maskAll = (word, letter) => {
let mask = 0;
let i = -1;
while (
(i = word
.split("")
.reverse()
.join("")
.indexOf(letter, i + 1)) != -1