Skip to content

Instantly share code, notes, and snippets.

@peteristhegreat
peteristhegreat / git diff sqlite3 .gitattributes
Last active August 12, 2024 07:58
Sqlite git diff - Get git to use an sql dump of sqlite3 for showing differences ( .gitconfig config attributes sqlite3 )
*.db diff=sqlite3
@niw
niw / libpng_test.c
Last active September 3, 2024 18:38
How to read and write PNG file using libpng. Covers trivial method calls like png_set_filler.
/*
* A simple libpng example program
* http://zarb.org/~gc/html/libpng.html
*
* Modified by Yoshimasa Niwa to make it much simpler
* and support all defined color_type.
*
* To build, use the next instruction on OS X.
* $ brew install libpng
* $ clang -lz -lpng16 libpng_test.c