Skip to content

Instantly share code, notes, and snippets.

View kcvinker's full-sized avatar

kcvinu kcvinker

View GitHub Profile
@Tetralux
Tetralux / strict_allocator.odin
Last active August 17, 2024 20:56
Allocator which maps each allocation to a separate page, and locks that page immediately on free
package util
import "base:runtime"
import "base:intrinsics"
import "core:mem"
import "core:mem/virtual"
import "core:os"
import "core:fmt"
@laytan
laytan / main.odin
Last active October 16, 2024 21:07
UUIDV4 in Odin
package uuid4
import "core:crypto"
import "core:io"
import "core:mem"
UUID_SIZE :: 16
UUID4 :: distinct [UUID_SIZE]byte
generate :: proc() -> (u: UUID4) #no_bounds_check {
@oskarnp
oskarnp / tracking_allocator.odin
Last active May 9, 2024 17:10
Odin tracking allocator
package main
import "core:fmt"
import "core:mem"
import "core:log"
import "core:runtime"
// NOTE(Oskar): An example of how to do a leak checking allocator with Odin's context system.
//
@tayvano
tayvano / gist:6e2d456a9897f55025e25035478a3a50
Created February 19, 2017 05:29
complete list of ffmpeg flags / commands
Originall From: Posted 2015-05-29 http://ubwg.net/b/full-list-of-ffmpeg-flags-and-options
This is the complete list that’s outputted by ffmpeg when running ffmpeg -h full.
usage: ffmpeg [options] [[infile options] -i infile]… {[outfile options] outfile}…
Getting help:
-h — print basic options
-h long — print more options
-h full — print all options (including all format and codec specific options, very long)