Skip to content

Instantly share code, notes, and snippets.

@SansPapyrus683
SansPapyrus683 / debugging.h
Last active February 14, 2026 04:01
A useful debugging template for C++.
#include <deque>
#include <iostream>
#include <map>
#include <set>
#include <unordered_map>
#include <unordered_set>
#include <vector>
template <typename T1, typename T2>
std::ostream& operator<<(std::ostream& out, const std::pair<T1, T2>& pair);
@karpathy
karpathy / microgpt.py
Last active February 14, 2026 04:01
microgpt
"""
The most atomic way to train and inference a GPT in pure, dependency-free Python.
This file is the complete algorithm.
Everything else is just efficiency.
@karpathy
"""
import os # os.path.exists
import math # math.log, math.exp
@AXE123456-Cloud
AXE123456-Cloud / gist:5e98ed94badbb86c36f4bf30b5ffb59c
Created February 13, 2026 08:20
Code that includes login UI, combat logic, inventory logic, save UI, and save functionality.You can make it better.Maybe more logic.Tanks for you!
#define WIN32_LEAN_AND_MEAN
#define _CRT_SECURE_NO_WARNINGS
#include <windows.h>
#include <cstdio>
#include <vector>
#include <ctime>
#include <cstring>
#include <fstream>
#include <sys/stat.h>
#pragma comment(linker, "/SUBSYSTEM:WINDOWS")
@kairusds
kairusds / 1-termux-adb.md
Last active February 14, 2026 03:52
Instructions for connecting Termux's android-tools adb to the current device via Wireless debugging and fixing phantom process killing

Install android-tools if you haven't already:

pkg update ; pkg upgrade
pkg install android-tools

adb pair 127.0.0.1:port

FWIW: I (@rondy) am not the creator of the content shared here, which is an excerpt from Edmond Lau's book. I simply copied and pasted it from another location and saved it as a personal note, before it gained popularity on news.ycombinator.com. Unfortunately, I cannot recall the exact origin of the original source, nor was I able to find the author's name, so I am can't provide the appropriate credits.


Effective Engineer - Notes

What's an Effective Engineer?