Skip to content

Instantly share code, notes, and snippets.

View marzeq's full-sized avatar

Antoni Marzec marzeq

View GitHub Profile
unsigned char dvd_png[] = {
0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a, 0x00, 0x00, 0x00, 0x0d,
0x49, 0x48, 0x44, 0x52, 0x00, 0x00, 0x03, 0xc0, 0x00, 0x00, 0x03, 0xc0,
0x08, 0x04, 0x00, 0x00, 0x00, 0x50, 0xdf, 0xd8, 0x10, 0x00, 0x00, 0x00,
0x01, 0x73, 0x52, 0x47, 0x42, 0x01, 0xd9, 0xc9, 0x2c, 0x7f, 0x00, 0x00,
0x00, 0x04, 0x67, 0x41, 0x4d, 0x41, 0x00, 0x00, 0xb1, 0x8f, 0x0b, 0xfc,
0x61, 0x05, 0x00, 0x00, 0x00, 0x20, 0x63, 0x48, 0x52, 0x4d, 0x00, 0x00,
0x7a, 0x26, 0x00, 0x00, 0x80, 0x84, 0x00, 0x00, 0xfa, 0x00, 0x00, 0x00,
0x80, 0xe8, 0x00, 0x00, 0x75, 0x30, 0x00, 0x00, 0xea, 0x60, 0x00, 0x00,
0x3a, 0x98, 0x00, 0x00, 0x17, 0x70, 0x9c, 0xba, 0x51, 0x3c, 0x00, 0x00,
#include <stdalign.h>
#include <stddef.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
typedef struct {
size_t count;
size_t capacity;
@marzeq
marzeq / arena.h
Created March 10, 2026 16:19
Chunk-based arena allocator
/*
------------------------------------------------------------------------------
arena.hchunk-based arena allocator
USAGE:
#define ARENA_IMPLEMENTATION
#include "arena.h"