Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/r-lyeh/tinybits

Tiny bits and useful snippets that I keep using everywhere (C, C++)
https://github.com/r-lyeh/tinybits

Last synced: 28 days ago
JSON representation

Tiny bits and useful snippets that I keep using everywhere (C, C++)

Awesome Lists containing this project

README

        

# tinybits
- [x] Tiny bits and useful snippets that I keep using everywhere.
- [x] Too simple to become libraries. Just cut & paste.
- [x] Cross-platform C/C++.
- [x] Public Domain.

|Snippet|Language|Domain|
|:------|:-------|:-----|
|[tinyarc4.hpp](tinyarc4.hpp)|C++|ARC4 stream cypher|
|[tinyassert.c](tinyassert.c)|C/C++|Old assert() macro with new tricks|
|[tinyatoi.c](tinyatoi.c)|C|atoi() implementation|
|[tinybenchmark.hpp](tinybenchmark.hpp)|C++|Benchmark code|
|[tinybsearch.c](tinybsearch.c)|C|Dichotomic binary search|
|[tinybsearch.cc](tinybsearch.cc)|C++|Dichotomic binary search|
|[tinybuild.h](tinybuild.h)|C|Build macros|
|[tinydebug.h](tinydebug.h)|C|Debug macros|
|[tinydefer.cc](tinydefer.cc)|C++|Defer macro, Go style|
|[tinydir.cc](tinydir.cc)|C++|Directory listing|
|[tinydixy.c](tinydixy.c)|C|Small YAML-subset config file parser|
|[tinydual.sh.bat](tinydual.sh.bat)|Bash|Dual bash/batch file|
|[tinyendian.c](tinyendian.c)|C|Endianness conversions|
|[tinyerror.c](tinyerror.c)|C|Error handling|
|[tinyfsm.c](tinyfsm.c)|C|Tight FSM|
|[tinygc.cc](tinygc.cc)|C++|Garbage collector (C++)|
|[tinyhexbase.c](tinyhexbase.c)|C|Simple binary to ascii encoder|
|[tinyhexdump.c](tinyhexdump.c)|C|Hexdump viewer|
|[tinyhuman.hpp](tinyhuman.hpp)|C++|De/humanized numbers|
|[tinyini.c](tinyini.c)|C|Config parser (ini+)|
|[tinyjson5.c](tinyjson5.c)|C|JSON5/SJSON/JSON parser/writer|
|[tinylog.h](tinylog.h)|C|Logging utilities|
|[tinylogger.h](tinylogger.h)|C|Simplest colorful logger|
|[tinylogger.hpp](tinylogger.hpp)|C++|Session logger|
|[tinymatch.c](tinymatch.c)|C|Wildcard/pattern matching|
|[tinymime.c](tinymime.c)|C|MIME/file-type detection|
|[tinypipe.hpp](tinypipe.hpp)|C++11|Chainable pipes|
|[tinyprint.cc](tinyprint.cc)|C++|Comma-based printer|
|[tinypulse.c](tinypulse.c)|C|Digital pulses|
|[tinyroman.cc](tinyroman.cc)|C++|Integer to roman literals|
|[tinystring.c](tinystring.c)|C|C string library|
|[tinystring.cc](tinystring.cc)|C++|C++ string utilities|
|[tinytga.c](tinytga.c)|C|TGA writer (fork)|
|[tinytime.cc](tinytime.cc)|C++|Timing utilities|
|[tinytodo.c](tinytodo.c)|C|TODO() macro|
|[tinytty.c](tinytty.c)|C|Terminal utilities|
|[tinyunit.c](tinyunit.c)|C|Unit-testing|
|[tinyuniso.cc](tinyuniso.cc)|C++|.iso/9960 unarchiver|
|[tinyuntar.cc](tinyuntar.cc)|C++|.tar unarchiver|
|[tinyunzip.cc](tinyunzip.cc)|C++|.zip unarchiver|
|[tinyvariant.cc](tinyvariant.cc)|C++|Variant class|
|[tinyvbyte.h](tinyvbyte.h)|C|vbyte encoder/decoder (VLE)|
|[tinywav.c](tinywav.c)|C|WAV writer (fork)|
|[tinywtf.h](tinywtf.h)|C/C++|Portable host macros|
|[tinyzlib.cpp](tinyzlib.cpp)|C++|zlib inflater|