Skip to content

Instantly share code, notes, and snippets.

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

Zlatozar Zhelyazkov zlatozar

🇧🇬
Давай!
View GitHub Profile
@lukechampine
lukechampine / monads.c
Last active November 10, 2025 23:26
Maybe and Either Monads in C
#include <stdio.h>
#include <stdbool.h>
// Maybe
typedef struct MaybeInt {
int just;
bool nothing;
} MaybeInt;
@swlaschin
swlaschin / effective-fsharp.md
Last active November 27, 2025 00:18
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

@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.
@prajapatimehul
prajapatimehul / garry-tan-claude-code-plan-mode-prompt.md
Last active March 6, 2026 12:36
Claude Code Prompt for Plan Mode - Garry Tan (YC CEO)

Claude Code Prompt for Plan Mode

#prompts

Review this plan thoroughly before making any code changes. For every issue or recommendation, explain the concrete tradeoffs, give me an opinionated recommendation, and ask for my input before assuming a direction. My engineering preferences (use these to guide your recommendations):

  • DRY is important—flag repetition aggressively.
  • Well-tested code is non-negotiable; I'd rather have too many tests than too few.
  • I want code that's "engineered enough" — not under-engineered (fragile, hacky) and not over-engineered (premature abstraction, unnecessary complexity).
  • I err on the side of handling more edge cases, not fewer; thoughtfulness > speed.
  • Bias toward explicit over clever.