Quick Snippets and Code Samples
Format currency with Intl
Use Intl.NumberFormat() to convert currency, units, notation, and other numeric values
Basic Three.js Scrollbar Animation
Animate a Three.js scene when the user changes the scroll position.
Hydrate Next.js Props to Realtime Firestore Data
Fetch and transitioning server-rendered data with Next.js to realtime Firestore data.
Use the Firestore Emulator with Flutter
How to use the Firestore Emulator in a Flutter App
Hot Reload Node Typescript Server
Setup a Node.js server with TypeScript that automatically restarts when the source code changes
How to use JS with Flutter Web
How to interop between JavaScript and Dart with Flutter Web
Automatic Backups for Firestore via Github Actions
How to implement a daily background job that exports your Firestore data to a storage bucket.
Theme your Web App with CSS Variables
How to dynamically theme a website with CSS. Methods for light/dark mode and multiple custom themes.
Delete a Firestore Collection
How to delete a Firestore Collection or Subcollection
Read a Single Firestore Document
Strategies for querying a single Firestore document.
Firestore Order by Document ID or Field
How to auto-increment a document field or ID in Firestore
Firestore Tag Filtering With in Queries
Query by tag or category labels in Firestore using IN and array-contains-any.