Skip to content

Instantly share code, notes, and snippets.

View jdecked's full-sized avatar

Justine De Caires jdecked

View GitHub Profile
@agalatan
agalatan / Conditionals.js
Last active June 29, 2022 22:08
[Flow] Conditional types
// See the flow link at the bottom, and the GIT comment below
// Good utils
type $If<X: boolean, Then, Else = empty> = $Call<((true, Then, Else) => Then) & ((false, Then, Else) => Else), X, Then, Else>;
type $Not<X: boolean> = $If<X, false, true>;
type $And<X: boolean, Y: boolean> = $If<X, Y, false>;
type $Or<X: boolean, Y: boolean> = $If<X, true, Y>;
// Unique, internal Symbols. Probably I can actually use JS's Symbol. Need to see how well Flow implements it
@stringtheory
stringtheory / crust.txt
Last active April 4, 2021 23:04
maple cream pie
For the Joy of Cooking
2 Single Crusts
Ingredients
2½ cups flour
1 teaspoon sugar
¼ cup shortening
1 teaspoon salt
@eyecatchup
eyecatchup / git-commit-log-stats.md
Last active September 5, 2025 16:04
Some commands to get git commit log statistics for a repository on the command line.

git commit stats

Commands to get commit statistics for a Git repository from the command line -
using git log, git shortlog and friends.