Skip to content

Instantly share code, notes, and snippets.

View VincentCordobes's full-sized avatar
👋
Hello, world!

Vincent Cordobes VincentCordobes

👋
Hello, world!
View GitHub Profile
@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
@actionshrimp
actionshrimp / ToggleGStatus
Created September 9, 2013 09:49
A vim-fugitive status window toggle (mapped to F3). Seems to work nicely
function! ToggleGStatus()
if buflisted(bufname('.git/index'))
bd .git/index
else
Gstatus
endif
endfunction
command ToggleGStatus :call ToggleGStatus()
nmap <F3> :ToggleGStatus<CR>