Skip to content

Instantly share code, notes, and snippets.

@ske2004
ske2004 / Win32.c
Last active March 31, 2025 22:01
811 byte windows executable with graphics update.
// Compile like this:
// cl Win32.c /O1 /c /GS- && crinkler Win32.obj user32.lib kernel32.lib gdi32.lib /SUBSYSTEM:WINDOWS /NODEFAULTLIB /UNSAFEIMPORT /TINYHEADER
#include <windows.h>
#define WN_TITLE "Unnamed"
#define WN_CLASS "WindowClassName"
#define WN_WIDTH 800
#define WN_HEIGHT 600
// clang-format off
// Compile the program linking user32.lib
#pragma comment(lib, "user32.lib")
#include <Windows.h>
// Event handler.
LRESULT CALLBACK WndProc(
HWND hWnd, // Window the event was assigned to.
UINT Msg, // Message type.
@Shoozza
Shoozza / Game Development Resources.md
Last active April 4, 2025 00:40
Game Development Resources

Game Development Resources v1.67

Last update on: 2025-04-04

Please insert in alphabetical order Please make sure all entries start with "* "

Glossary

  • ➖: Placeholder

Usage

@Shoozza
Shoozza / game_engine_framework_export_size_windows.md
Last active April 2, 2025 17:53
Empty Project Game Engine/Framework Export Size (uncompressed Windows Executable and Data)

Empty Project Export sizes on Windows for Game Engines, Game Frameworks, Virtual Consoles and Game Programming Languages

Name Size ↑¹ Size (compressed with UPX ) ↑² Link
PlummersSoftwareLLC/HelloAssembly (Theron) 0.39 KB ??? 🔗
ske2004/Win32.c 0.82 KB ??? 🔗
rxi/kit 55.00 KB 30.50 KB 🔗
WASM-4 (c version) 236.00 KB ??? 🔗
raylib 0.99 MB 275.00 KB 🔗
BlitzMax (MaxIDE 1.43) 1.49 MB 650.00 KB [🔗](https://nitrologic.itch.io/bl
@d7samurai
d7samurai / .readme.md
Last active April 2, 2025 03:36
Minimal WASAPI

Minimal WASAPI

Minimal WASAPI reference implementation. Runnable console application contained in a single function and laid out in a linear, step-by-step fashion. No modern C++ / OOP / obscuring cruft. Produces a steady sine wave sound.

(This is a re-post of the same gist I posted a few years earlier, simply due to me wanting the Minimal D3D11 series to be listed contiguously and it's not possible to hide or rearrange gists).

@Shoozza
Shoozza / install_luarocks_windows_10.md
Last active March 10, 2024 09:34
Installing Luarocks on Windows with MSYS2 and gcc

Installing Luarocks on Windows

Getting Luarocks to work on Windows 8.1/10 with MSYS2 gcc (mingw64)

1. MSYS2 installation

  1. Visit https://www.msys2.org/
  2. Click on the link next to "Download the installer"
  3. Run the installer
  4. Add "C:\msys64\usr\bin" to path
{
"suggest.noselect": false,
"coc.preferences.formatOnSaveFiletypes": [
"javascript",
"typescript",
"typescriptreact",
"json",
"javascriptreact",
"typescript.tsx",
"graphql"
" Specify a directory for plugins
call plug#begin('~/.vim/plugged')
Plug 'neoclide/coc.nvim', {'branch': 'release'}
Plug 'scrooloose/nerdtree'
"Plug 'tsony-tsonev/nerdtree-git-plugin'
Plug 'Xuyuanp/nerdtree-git-plugin'
Plug 'tiagofumo/vim-nerdtree-syntax-highlight'
Plug 'ryanoasis/vim-devicons'
Plug 'airblade/vim-gitgutter'
@Yanrishatum
Yanrishatum / heapsfaq.md
Last active November 29, 2024 04:19
An Unofficial Heaps FAQ

An Unofficial Heaps FAQ

I (Yanrishatum) see too many same questions. They irritate me.

Translation

"How dare you come into this chat and not realize that i am the GOD of heaps and that you MUST check out MY documentation1!!! Im veyr abngrey!!!" - translation from someone in chat.

Very accurate, I highly approve.

@Yanrishatum
Yanrishatum / hlc.md
Last active April 8, 2025 20:18
How to compile HL/C

How to compile HL/C

Prepwork/terms

Because I have no trust in people.

  • <hashlink> points to your installation of Hashlink, e.g. folder in which hl.exe (or Unix executable) is, alongside with library binaries (.hdll files), and include folder.
  • <src> points to the folder containing generated HL/C sources. One that contains hlc.json file.
  • <app> refers to your output executable name, including extension.
  • <main> refers to your entry-point file name, including extension (see below).
  • I provide example of doing it on Windows via MSVC cl.exe, but Unix should be more or less same with replacement of argument flags and compiler.
  • I expect that you DO have a compiler installed and can call cl.exe or other compiler from command-line.