Skip to content

Instantly share code, notes, and snippets.

@flga
flga / odin.py
Last active February 21, 2025 16:16
WIP Odin lldb
import lldb
import math
import traceback
def __lldb_init_module(debugger, dict):
debugger.HandleCommand('type summary add -F odin.string_summary -w odin string')
debugger.HandleCommand('type summary add -F odin.typeid_summary -w odin typeid')
debugger.HandleCommand('type synth add -l odin.TypeidSynth -w odin typeid')
@gingerBill
gingerBill / microui_sdl_demo.odin
Last active February 22, 2025 10:35
microui + SDL Demo in Odin
package microui_sdl
import "core:fmt"
import "core:c/libc"
import SDL "vendor:sdl2"
import mu "vendor:microui"
state := struct {
mu_ctx: mu.Context,
log_buf: [1<<16]byte,
@JoeyBurzynski
JoeyBurzynski / 55-bytes-of-css.md
Last active April 8, 2025 14:18
58 bytes of css to look great nearly everywhere

58 bytes of CSS to look great nearly everywhere

When making this website, i wanted a simple, reasonable way to make it look good on most displays. Not counting any minimization techniques, the following 58 bytes worked well for me:

main {
  max-width: 38rem;
  padding: 2rem;
  margin: auto;
}