Skip to content

Instantly share code, notes, and snippets.

View zlatozar's full-sized avatar
🇧🇬
Давай!

Zlatozar Zhelyazkov zlatozar

🇧🇬
Давай!
View GitHub Profile
@baconglucose
baconglucose / git-setup.md
Last active March 29, 2024 17:09
How to configure a repository to push to github.

Setting up git

One-time key setup procedures

SSH

Create an SSH key:

ssh-keygen -t rsa -b 4096 -C "Desired comment"
# Give the file a descriptive name.
@swlaschin
swlaschin / effective-fsharp.md
Last active March 8, 2024 03:10
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

@lukechampine
lukechampine / monads.c
Last active November 14, 2023 18:22
Maybe and Either Monads in C
#include <stdio.h>
#include <stdbool.h>
// Maybe
typedef struct MaybeInt {
int just;
bool nothing;
} MaybeInt;