Skip to content

Instantly share code, notes, and snippets.

View rohit-kumar-j's full-sized avatar
☠️

RKJ rohit-kumar-j

☠️
View GitHub Profile
@rohit-kumar-j
rohit-kumar-j / Env.h
Created December 30, 2022 13:55
Multiple Window Handling wrapper class : header file for C++
// Derived from: GLFW call to non-static class function in static key_callback
// https://stackoverflow.com/a/62692209/14376181
//
#ifndef ENV_H
#define ENV_H
#include <GLFW/glfw3.h>
#include <direct.h>
#include <filesystem>
@rohit-kumar-j
rohit-kumar-j / VSCode__Torch_Cpp__CMakeLists.MD
Last active April 1, 2024 11:53
Basic Setup :: VS Code, Torch C++ with CMakeLists
> * Go to [hexed.it](https://hexed.it/)
> * Click "Open File" and choose your sublime_text.exe **(DON'T FORGET TO BACKUP YOUR EXE FILE)**
> * Go to Search and in "Search for" put: C3 C6 01 00 C3
> * In Search Type select "Enable replace" and put: C3 C6 01 01 C3
> * Click "Find next" then "Replace"
> * Do the same thing with: 51 31 C0 88 05 => 51 b0 01 88 05
> * Click "Save as" then name it: sublime_text
> * Copy your modified sublime_text.exe to directory Sublime Text