Skip to content

Instantly share code, notes, and snippets.

View AliElSaleh's full-sized avatar
🎯
Focusing

Ali El Saleh AliElSaleh

🎯
Focusing
View GitHub Profile
@Boostibot
Boostibot / rdtsc.h
Last active May 3, 2025 03:17
cross platform/compiler/isa RDTSC frequency with platform specific fallback C/++
//so that the implementation compiles.
//If you are using this file as .h remove this
#define MODULE_IMPL_ALL
//rdtsc.h
#ifndef MODULE_TSC
#define MODULE_TSC
#ifdef __cplusplus
extern "C" {
@d7samurai
d7samurai / .readme.md
Last active May 7, 2025 21:20
Minimal D3D11

Minimal D3D11

Minimal D3D11 reference implementation: An uncluttered Direct3D 11 setup + basic rendering primer and API familiarizer. Complete, runnable Windows application contained in a single function and laid out in a linear, step-by-step fashion that should be easy to follow from the code alone. ~200 LOC. No modern C++, OOP or (other) obscuring cruft. View on YouTube

hollowcube

Other gists in this series:

@andrewrk
andrewrk / microsoft_craziness.h
Created September 1, 2018 14:35
jonathan blow's c++ code for finding msvc
//
// Author: Jonathan Blow
// Version: 1
// Date: 31 August, 2018
//
// This code is released under the MIT license, which you can find at
//
// https://opensource.org/licenses/MIT
//
//