Skip to content

Instantly share code, notes, and snippets.

@karpathy
karpathy / microgpt.py
Last active February 13, 2026 02:32
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
@emschwartz
emschwartz / README.md
Last active February 13, 2026 02:31
The Most Popular Blogs of Hacker News in 2025

This is an OPML version of the HN Popularity Contest results for 2025, for importing into RSS feed readers.

Plug: if you want to find content related to your interests from thousands of obscure blogs and noisy sources like HN Newest, check out Scour. It's a free, personalized content feed I work on where you define your interests in your own words and it ranks content based on how closely related it is to those topics.

/*
* Copyright 2026 Kyriakos Georgiopoulos
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@JimmyCushnie
JimmyCushnie / UnityGraphicsBullshit.cs
Last active February 13, 2026 02:24
Exposes some Unity URP graphics settings that are (for some stupid fucking bullshit reason) private.
using System.Reflection;
using UnityEngine;
using UnityEngine.Rendering;
using UnityEngine.Rendering.Universal;
using ShadowResolution = UnityEngine.Rendering.Universal.ShadowResolution;
/// <summary>
/// Enables getting/setting URP graphics settings properties that don't have built-in getters and setters.
@durkes
durkes / clear_x.js
Last active February 13, 2026 02:25
Script to delete all X (Twitter) posts and replies
/* While signed in, navigate to your Profile > Replies page
and run the following script from DevTools Console */
(() => {
const sleep = (ms) => new Promise(r => setTimeout(r, ms));
const normalize = (s) => (s || "").replace(/\s+/g, " ").trim().toLowerCase();
const state = {
running: false,
processed: new Set(),