stuff that does not deserve to be split into multiple repos
File | Description |
---|---|
scripts/argvtoc | shellscript for printing argv as c array. Useful for debugging and calling exec*() by hand. Public domain |
scripts/screenshot | shellscript for doing screenshots on x11 and saving them in clipoard and disk. Public domain |
scripts/marktable | shellscript for converting tabular data into markdown syntax. Public domain |
scripts/gmintbl | shellscript for minifing google benchmark output. Public domain |
scripts/codepoint | shellscript for printing utf8 stdin as list of unicode codepoints Public domain |
scripts/euclid | awkscript that executes extended euclidean algorithm step-by-step Public domain |
File | Description |
---|---|
shitest.h | Minimal unittesting lib. Written due to my discontent with fullblown frameworks like gtest. UNSTABLE |
shlag_b64.h | base64 implementation with support for inplace enc/dec. UNSTABLE |
shlag_pcg.h | 32 bit pcg prng wrapped in single header lib along fast, unbiased algo for randrange(). STABLE, MIT Licensed |
There are examples in shlag/examples/
and tests in shlag/tests/
File | Description |
---|---|
trie.cpp | Simple, universal trie/prefix-tree implementation |
In root project dir run:
meson setup build/
meson compile -C build/
executables will be outputed into build/ dir
For quick check you can use meson test -C build
which will run some tests
and examples. NOTE: output is way less verbose than when running them by hand