Skip to content

Instantly share code, notes, and snippets.

View Freezystem's full-sized avatar
😇
a true act of Goodwill always sparks another

Nico Freezystem

😇
a true act of Goodwill always sparks another
  • Tech Lead @ Inuk
  • Montpellier
View GitHub Profile
@john2x
john2x / 00_destructuring.md
Last active July 9, 2024 01:38
Clojure Destructuring Tutorial and Cheat Sheet

Clojure Destructuring Tutorial and Cheat Sheet

(Related blog post)

Simply put, destructuring in Clojure is a way extract values from a datastructure and bind them to symbols, without having to explicitly traverse the datstructure. It allows for elegant and concise Clojure code.

Vectors and Sequences

@JamieCurnow
JamieCurnow / firestore.ts
Last active July 7, 2024 05:18
Using Firestore with Typescript - including update helper
/**
* This Gist is part of a medium article - read here:
* https://jamiecurnow.medium.com/using-firestore-with-more-typescript-8058b6a88674
*/
// import firstore (obviously)
import { firestore } from 'firebase-admin'
import type { DocumentData, WithFieldValue } from 'firebase-admin/firestore'
// Here's the helper type for paths: