Skip to content

Instantly share code, notes, and snippets.

View imgui_io_queue.cpp
// *EDIT* January 2022: this is now part of Dear ImGui 1.87
// See
// [Internal]
enum ImGuiIoEventType
class DotGenerator(Visitor):
def __init__(self):
self.lines = []
self.next_id = 0
def make_name(self, node, name=None):
if name is None:
name = "n%d" % self.next_id
self.next_id += 1
sebbbi / BDF2_integrate_HLSL.txt
Last active Mar 28, 2018
BDF2 integrator in HLSL
View BDF2_integrate_HLSL.txt
void BFD2(inout ParticleSimulationData Particle, float3 Accel)
float3 x = Particle.Position;
float3 v = Particle.Velocity;
float3 x1 = Particle.PositionPrev;
float3 v1 = Particle.VelocityPrev;
Particle.Position = (4.0/3.0) * x - (1.0/3.0) * x1 + 1.0 * ((8.0/9.0) * v - (2.0/9.0) * v1 + (4.0/9.0) * TimeStep2 * Accel);
Particle.PositionPrev = x;
dwilliamson / Reflection.h
Created Feb 3, 2018
Basic compile-time reflection for C++11
View Reflection.h
#pragma once
#include <typestring/typestring.hh>
namespace rfl
// Compile-time data member description
ChemistAion / Nodes.cpp
Created Jan 25, 2018
Prototype of standalone node graph editor for ImGui
View Nodes.cpp
// Prototype of standalone node graph editor for ImGui
// Thread:
// This is based on code by:
// @emoon
// @ocornut
// @flix01
#include "Nodes.h"
Leandros / main.c
Last active Dec 3, 2018
Lua C preprocessor
View main.c
* Copyright (c) 2018 Arvid Gerstmann.
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
#include <stdio.h>
local func = [[
View API

API Design: Coroutines APIs (Janurary-2017)

I am currently dealing with a lot of libraries at work. Both third party as well as libraries written or being currently in process of being written by me. I absolutely love writing and working with libraries. Especially if they present or bring me to either a new or different approach to solve a problem. Or at least provide a different view.

Over time I noticed however that quite regulary we had to decide that we cannot use a third party library. Often it is the usual reason.

jcupitt / danila.cpp
Last active Jun 20, 2016
test vips memory behaviour
View danila.cpp
/* compile with
* g++ -g -Wall danila.cpp `pkg-config vips --cflags --libs`
#include <vector>
#include <string>
#include <iostream>
#include <vips/vips.h>
alirobe / reclaimWindows10.ps1
Last active Jan 22, 2022
This Windows 10 Setup Script turns off a bunch of unnecessary Windows 10 telemetery, bloatware, & privacy things. Not guaranteed to catch everything. Review and tweak before running. Reboot after running. Scripts for reversing are included and commented. Fork of (different defaults). N.…
View reclaimWindows10.ps1
# Tweaked Win10 Initial Setup Script
# Primary Author: Disassembler <>
# Modified by: alirobe <> based on my personal preferences.
# Version: 2.20.2, 2018-09-14
# Primary Author Source:
# Tweaked Source:
# Tweak difference:
# @alirobe's version is a subset focused on safely disabling telemetry, some 'smart' features and 3rd party bloat ...