Skip to content

Instantly share code, notes, and snippets.

View andrewhathaway's full-sized avatar

Andrew Hathaway andrewhathaway

View GitHub Profile
@csswizardry
csswizardry / nesting.css
Created February 25, 2021 16:49
DOM Depth Visualiser
/**
* Tier 1 – Dotted
*/
* { outline: 2px dotted purple; }
* * { outline: 2px dotted blue; }
* * * { outline: 2px dotted green; }
* * * * { outline: 2px dotted yellow; }
* * * * * { outline: 2px dotted orange; }
* * * * * * { outline: 2px dotted red; }
@JamieMason
JamieMason / README.md
Last active December 8, 2021 20:34
Lossless Debounce Function in JavaScript

Lossless Debounce Function

Returns a function which will capture and collect all invocation arguments, to process in batches once ms consecutive resting time has passed.

Know a more common name for this function? Let me know in this discussion.

Demo