finds.dev← search

// the find

barretlee/snippets

★ 313 · JavaScript · updated Oct 2020

Code Snippets

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.

View on GitHub → Homepage ↗

// want more like this?

We dig through GitHub every week and send a few repos picked for what you actually care about — each with an honest take like this one.

Get finds in your inbox → Search again →