Skip to content

Instantly share code, notes, and snippets.

Chad Lavimoniere chadlavi

Block or report user

Report or block chadlavi

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
chadlavi / rainbowLog.ts
Last active Feb 29, 2020 — forked from Benargee/rainbowLog.js
A console.log with a little more... flair.
View rainbowLog.ts
const rainbow = (s: string) => {
const colors = [
chadlavi / remove-badUTM.user.js
Last active Feb 26, 2020
a greasemonkey script to remove bad UTM tags from link HREFs
View remove-badUTM.user.js
const removeBadTags = (badTags) => {
const links = [...document.querySelectorAll('a')]
(l) => {
(b) => {
const badFirstRegex = RegExp(`[\?]${b}=[^\?&#]*`, 'gi')
const badSecondRegex = RegExp(`[&]${b}=[^\?&#]*`, 'gi')
if (l.href.match(badFirstRegex)) {
chadlavi /
Last active Mar 28, 2020
a bash function to quickly identify any yarn links you've got set up currently
chadlavi / hn.user.js
Last active Apr 14, 2020
give HN a dark mode
View hn.user.js
// ==UserScript==
// @name HN accessibility patch
// @version 1.0.0
// @namespace
// @author Chad Lavimoniere
// @grant none
// @include*
// @downloadURL
// @updateURL
// ==/UserScript==
chadlavi /
Last active May 4, 2019
a (macOS-targed) bash script to combine multiple named imports from a single library into one statement
# In this script, the library I maintain for work, "@casecommons/cbp-undercase"
# is used. I'll abstract it out in a future version of this so that the syntax
# is more like " [file] [library name]
imports=$(cat $1 | grep '@casecommons/cbp-undercase' | wc -l)
if [[ $imports -le 1 ]]; then
# next line commented out for scripted use
# echo "$1: no imports to combine."

Things I wish Google Assistant could do

This is a running list of the use cases that come up in my everyday life that I wish Google Assistant (either on my phone or on a Google Home device) could handle.

repeated/scheduled routines

"Hey Google, run routine Cleaning Time every Sunday at 11am"

location-triggered routines

"Hey Google, run routine [something] every time I get home"

data-dependent conditional logic

chadlavi / fp6.user.js
Last active Apr 28, 2020
fp6 accessibility
View fp6.user.js
// ==UserScript==
// @name 6dot accessibility patch
// @version 4.0.5
// @namespace
// @author Chad Lavimoniere
// @grant none
// @include http*://6.*.org/*
// @downloadURL
// @updateURL
// ==/UserScript==
View Preferences.sublime-settings
"color_scheme": "Packages/Monokai Dark/Monokai Dark.tmTheme",
"drag_text": false,
"font_size": 12,
"highlight_modified_tabs": true,
chadlavi / spotify-embed.user.js
Last active Nov 1, 2018
a js script to embed spotify playlists or albums when a spotify share url is present
View spotify-embed.user.js
// ==UserScript==
// @name spotify embedder
// @version 1
// @namespace
// @downloadURL
// @updateURL
// @description embed spotify player when a url is present
// @author Chad Lavimoniere
// @exclude http*://**
// @exclude http*://**
You can’t perform that action at this time.