finds.dev

barretlee/snippets

Code Snippets

View on GitHubHomepage ↗

★ 313JavaScriptupdated Oct 2020

// the take

A personal snippet library by a Chinese frontend developer, deployed as a static Jekyll site with a search UI. It's a collection of CSS tricks, JS utilities, HTML boilerplate, htaccess configs, and a handful of Node snippets — the kind of stuff you'd bookmark circa 2015.

The categorization is clean: css, javascript, html, sass, nginx, nodejs all live in their own folders as plain markdown files, making it easy to browse or grep locally. The search is client-side and instant. Some of the CSS snippets (triangle, hexagon, clearfix, shake animation) are genuinely useful references. The contribution flow is straightforward — fork, add a .snippet file, PR.

Abandoned since 2020 and effectively frozen in 2015-era web dev — Flash embedding, IE detection, Windows Phone viewport hacks, and 'add to favorites IE' are dead artifacts. The JavaScript snippets predate ES6 entirely; no modules, no async/await, nothing post-ES5. The hosted site URL is dead. There are only ~6 Node snippets and they're thin; this is really a CSS/HTML cheat-sheet padded with a few other categories.

We read the README, the directory tree and a key source file in July 2026. Nobody pays to be listed. How we judge →

// at a glance

Stars
313
Forks
83
Language
JavaScript
Last commit
1 Oct 2020

// nearby

If snippets isn't quite it.

All repos →