Skip to content

Instantly share code, notes, and snippets.

@pkese
pkese / adaptive_demo.fs
Last active August 27, 2024 22:43
FSharp.Data.Adaptive sample with React
module AdaptiveSample
open Fable.React
open Fable.React.Props
open FSharp.Data.Adaptive
let useAdaptive (v: aval<'T>) =
// initialize hook with initial value
let stateHook = Hooks.useState (AVal.force v)
let onChange () =
@swlaschin
swlaschin / effective-fsharp.md
Last active June 16, 2025 06:53
Effective F#, tips and tricks

Architecture

  • Use Onion architecture

    • Dependencies go inwards. That is, the Core domain doesn't know about outside layers
  • Use pipeline model to implement workflows/use-cases/stories

    • Business logic makes decisions
    • IO does storage with minimal logic
    • Keep Business logic and IO separate
  • Keep IO at edges

@yunga
yunga / Chocolatey.md
Created April 4, 2019 22:10
Chocolatey Cheat Sheet

Chocolatey

Homepage: Chocolatey.org

Chocolatey is a machine-level package manager and installer for software packages, built for the Windows NT platform.

It is an execution engine using the NuGet packaging infrastructure and Windows PowerShell to provide an automation tool for installing software on Windows machines, designed to simplify the process from the user perspective.

The name is an extension on a pun of NuGet (from "nougat") "because everyone loves Chocolatey nougat".

@qoomon
qoomon / conventional-commits-cheatsheet.md
Last active August 13, 2025 13:41
Conventional Commits Cheatsheet
@muratg
muratg / monadicParser.fs
Created November 28, 2012 19:55
Monadic parsing in F# - translated from "Monadic parsing in Haskell" paper by Graham Hutton & Erik Meijer
// ===================
// Monadic parsing in F#
// by Murat Girgin
// Translated from "Monadic parsing in Haskell" paper by Graham Hutton & Erik Meijer
// Source: http://www.cs.nott.ac.uk/~gmh/pearl.pdf
// ===================
#nowarn "40"
// ---------------------------------------------------------------------------------