Skip to content

Instantly share code, notes, and snippets.

View Shmew's full-sized avatar

Cody Johnson Shmew

View GitHub Profile
@dsyme
dsyme / rant.md
Last active December 31, 2022 05:54
@akhansari
akhansari / event-sourced-user.fsx
Last active December 16, 2022 00:09
F# : Event Sourcing in a nutshell
// ========= Event Sourcing in a nutshell
(*
FriendlyName: string
Aggregate friendly name.
Initial: 'State
Initial (empty) state we will start with.
Decide: 'Command -> 'State -> 'Event list
@matthid
matthid / ReactErrorBoundary.fs
Created September 20, 2018 17:41
React error boundary for rendering issues with fable, designed to be used with elmish architecture
module ReactErrorBoundary
open Fable.Core
open Fable.Import
open Fable.Helpers.React
type [<AllowNullLiteral>] InfoComponentObject =
abstract componentStack: string with get
[<Pojo>]
@mobilemind
mobilemind / git-tag-delete-local-and-remote.sh
Last active July 2, 2024 00:02
how to delete a git tag locally and remote
# delete local tag '12345'
git tag -d 12345
# delete remote tag '12345' (eg, GitHub version too)
git push origin :refs/tags/12345
# alternative approach
git push --delete origin tagName
git tag -d tagName