Code snippets
Here are some various code snippets that might prove useful:
Qt 4 / C++
| Code snippet | Description |
| Resizable photo frames in Qt | Creating a dynamically resizable photo frame by using image composition techniques in Qt |
C
| Code snippet | Description |
| Safe replacement for gets | Get one line of text from standard input and dynamically allocate it |
| Alternative for getch and getche on Linux | Get one character from standard input in unbuffered terminal mode |
| Type encoding viewer | Figure out how values of certain scalar types are stored in memory |
| Soldier of Fortune 2 wallhack | How to use function interposition to create a small wallhack by hooking into OpenGL calls |
x86 Linux assembler (NASM)
| Code snippet | Description |
| OpenGL example | Render OpenGL graphics by using GLUT and OpenGL calls |
| Ideal statistical sample formula | Calculate the ideal statistical sample from given input values |
| Simple audio playback using ALSA | Utilize ALSA to play an unbuffered raw WAV/PCM sample |







