Skip to content

Instantly share code, notes, and snippets.

View nickel-dev's full-sized avatar

Daniel Nickel nickel-dev

View GitHub Profile
@namandixit
namandixit / omg.md
Last active March 12, 2025 02:57
Our Machinery Guidebook (Mirrored from https://ourmachinery.com/files/guidebook.md.html)

The purpose of this guidebook is to lay down principles and guidelines for how to write code and work together at Our Machinery.

OMG-META: About this guidebook

OMG-META-1: Guidelines are identified by unique identifiers

Each guideline in this document is identified by a unique identifier (OMG-META-1) as well as a name (Guidelines are identified by unique identifiers). Names may change, but identifiers are permanent and can be used to permanently and uniquely refer to a specific guideline.

@Pikachuxxxx
Pikachuxxxx / ImGuiTransformUI.cpp
Last active October 14, 2024 07:40
ImGui Transform Component with RBG for XYZ than can be used for position, rotation and scaling components
void DrawVec3Control(const std::string& label, glm::vec3& values, float resetValue = 0.0f, float columnWidth = 100.0f)
{
ImGuiIO& io = ImGui::GetIO();
auto boldFont = io.Fonts->Fonts[0];
ImGui::PushID(label.c_str());
ImGui::Columns(2);
ImGui::SetColumnWidth(0, columnWidth);
ImGui::Text("%s", label.c_str());
@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
//
//
@sherjilozair
sherjilozair / sdl-sokol-sprite.c
Created June 9, 2018 14:05
Minimal sprite rendering example with SDL2 for windowing, sokol_gfx for graphics API using OpenGL 3.3 on MacOS
#include <OpenGL/gl3.h>
#include <SDL2/SDL.h>
#define SOKOL_IMPL
#define SOKOL_GLCORE33
#include <sokol_gfx.h>
#define STB_IMAGE_IMPLEMENTATION
#include <stb_image.h>
#define CODE(...) #__VA_ARGS__