Skip to content

Instantly share code, notes, and snippets.

View johnroper100's full-sized avatar
🖥️
Coding and Having Fun!

John Roper johnroper100

🖥️
Coding and Having Fun!
View GitHub Profile
@cpq
cpq / embed.c
Last active May 15, 2024 17:20
How to embed data files into C/C++ executable
// Copyright (c) Sergey Lyubka, 2013.
// All rights reserved.
// Released under the MIT license.
// This program is used to embed arbitrary data into a C binary. It takes
// a list of files as an input, and produces a .c data file that contains
// contents of all these files as collection of char arrays.
// Usage:
// 1. Compile this file:
// cc -o embed embed.c
@jbroadway
jbroadway / Slimdown.md
Last active July 7, 2024 08:56
Slimdown - A simple regex-based Markdown parser.