Skip to content

Instantly share code, notes, and snippets.

View scslmd's full-sized avatar

Steven Lu scslmd

View GitHub Profile
@scslmd
scslmd / microgpt.py
Created February 12, 2026 15:22 — forked from karpathy/microgpt.py
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
@scslmd
scslmd / findtextorimage.ahk
Created December 19, 2020 07:26 — forked from bgantt/findtextorimage.ahk
FindText/Image
/*
===========================================
FindText - Capture screen image into text and then find it
https://autohotkey.com/boards/viewtopic.php?f=6&t=17834
FindText() approaches the search differently than built-in ImageSearch. Think 1980's ASCII art. This function abstracts the screen's image into representative 0's and _'s.
Author : FeiYue
Version : 5.2
Date : 2017-06-10
Usage:
@scslmd
scslmd / AdvancedWindowSnap.ahk
Created July 31, 2019 04:41 — forked from Cerothen/AdvancedWindowSnap.ahk
Advanced Window Snap is a script for AutoHotKey that expands upon Windows built-in window-snapping hotkeys.
/**
* Advanced Window Snap (Extended
* Snaps the Active Window to one of nine different window positions.
*
* @Editing author Jarrett Urech
* @Original author Andrew Moore <andrew+github@awmoore.com>
* @version 2.1
*
**/