Minimal recipes for reading a file, overwriting one, and walking a directory tree in Go, with a small end-to-end example that ties the three together.
·2 min read·
go
snippets
A pure-CSS recipe for limiting a block of text to a fixed number of lines — handy when the content is dynamic and you don't want the layout to drift.
·1 min read·
css
snippets
Snippets for showing a top loading bar while Next.js navigates between pages, using NProgress wired to the Pages Router events.
·1 min read·
react
next.js
snippets
A handful of GORM snippets I keep around when I start a project in Go — installing, modeling, validations, many-to-many relations, hooks, and the queries I run most often.