Skip to content

Instantly share code, notes, and snippets.

#ifndef _ALLOCATORS_H_INCLUDE_
#define _ALLOCATORS_H_INCLUDE_
#include <stdint.h>
#include <stddef.h>
#include <stdbool.h>
#include <stdalign.h>
/*
Arena allocator, also known as a linear or bump allocator, is a
/* SPDX License Identifier: MIT-0 */
#ifndef _POOL_H_INCLUDE_
#define _POOL_H_INCLUDE_
#include <stdint.h>
#include <stddef.h>
#include <stdbool.h>
#include <stdalign.h>
typedef struct Pool Pool;
@axe-or
axe-or / arena.h
Last active March 10, 2025 17:15
#ifndef _ARENA_H_INCLUDE_
#define _ARENA_H_INCLUDE_
#include <stdint.h>
#include <stddef.h>
#include <stdbool.h>
#include <stdalign.h>
typedef struct Arena Arena;
typedef struct ArenaRegion ArenaRegion;
@axe-or
axe-or / jss.odin
Last active February 11, 2025 17:13
package jss
import "core:fmt"
import "core:time"
import "core:slice"
import "core:mem"
import "core:math"
import "core:math/rand"
Task :: struct {
@axe-or
axe-or / nvim_config_tgz.txt
Last active January 29, 2025 16:17
nvim config
H4sIAAAAAAAAA+xd+3bbNtLPv8tz+g5o2lR2KtuSrIujE7kry3KirS17JTnZnDh1KRKUkFAklwB9
SdM9+yD7vdw+yTcDkBRJSZbtJt7uVnBrE8BvLsAAgysZ54JNth592VCAUKtVHsk/tVrybxQeFcu1
QrVYrZUK248KxUIRsknlC+slQ8CF7hPyaKdQqVaKi3HL8v9Lg4P21y1B/S/XCu5i/2IF0ovF7WJh
Zf+HCAn782tH6FdfoBnc0v7lMti/sF0E+5eqpVX/f5Awa39jE5I+qww0cLVaXmT/Uq1WlPavlitF
NHyhuF0tVB+RwmfVYkH4g9sfjE4+0OtL1zeJ0b4Svj649qj2pzPCdggrVgnbLhFWLWNKsEMCSAkg
JVApwx0yhJQhpAxVSmeHdCClAykdlcI4+0hJoH4zR8hfnvDJ8FpIQQYXPnNGJPzjB45MtoCNBWws
YKPNV/PU86iP2NMdcgrwU4CfKql7O2QPUvYgZU+l9FGB01B2B/ToqMceyCN7oS4HQHMANAeLhTaF
O2EGgnX5dA4VFT0BdfQITKJHJT+MBTE6mKKDKTpIoYcxejhFD6foYQqtqjpilIpgxSeeseARi7Do
YdSayrGmcm4wgqqP2BQqCs0gfAB24RNwC5+U0iFhhDyNkacx8jSJ3IuQezFyL0buJZHS1CEHLPj0
EcsdEoTFVrGDmOVBzHKmDfwY/hVQapNaBCvYtYhus5EDf01q2JgFD5Ye2IIYOqeSwUQXxpgYntfV
@axe-or
axe-or / csv.cs
Last active December 26, 2024 13:16
Tiny C# CSV utility class
// SPDX License Identifier: MIT-0
public class CSV {
public class ParserException : Exception {
public ParserException(string msg) : base(msg) {}
}
public class LexerException : Exception {
public LexerException(string msg, long offset) : base($"(Offset={offset}) {msg}") {}
}