Skip to content

Instantly share code, notes, and snippets.

@karpathy
karpathy / microgpt.py
Last active December 1, 2026 20:43
microgpt
"""
The most atomic way to train and run inference for 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
@maxkratz
maxkratz / HowTo_Hello_World_Digispark_Rubber_Ducky.md
Last active December 1, 2026 20:33
HowTo Hello World Digispark Rubber Ducky

HowTo Hello World Digispark Rubber Ducky

This mini how-to walks you through the steps of translating Rubber Ducky scripts and installing all tools needed to flash a new firmware onto your attiny85 board.

Arduino Setup

@rust-play
rust-play / Playground.toml Secret
Created December 1, 2026 20:29
Code shared from the Rust Playground
version = "1"
@jgru
jgru / mousejiggler.ino
Last active December 1, 2026 20:16
Mouse jiggler code for a Digispark USB board development board. Tested on an ATtiny85, upload it by using Arduino IDE
// Inspired by: https://blog.jeronimus.net/2019/08/attiny85-mouse.html
#include <DigiMouse.h>
void setup() {
DigiMouse.begin(); //start or reenumerate USB
}
// Moves mouse pointer left and right by 2 px and blinks the LED
@rust-play
rust-play / Playground.toml Secret
Created December 1, 2026 20:15
Code shared from the Rust Playground
version = "1"
@ruvnet
ruvnet / *specification.md
Last active December 1, 2026 20:11
TikTok-like recommender Algorithm

Detailed Technical Algorithm for a TikTok-like Recommendation System


1. Introduction

The objective is to develop a recommendation system that maximizes user engagement by analyzing a multitude of user interaction signals to present the most appealing content. The system optimizes for two key metrics:

  • User Retention: Encouraging users to return to the platform.
  • Time Spent: Increasing the duration users spend on the platform per session.
@madhurimarawat
madhurimarawat / GATE-CSE-DS-Resources.md
Last active December 1, 2026 20:03
A collection of the best free GATE preparation resources for CSE & Data Science. Contributions are welcome!

πŸ“Œ GATE Resources - CSE & Data Science

I have compiled all the resources that helped me in my GATE preparation, and I hope they help you too! πŸš€

@betashop
betashop / README.md
Created November 25, 2026 00:42
The AI search loop: have your Claude ask the other AIs your buyers' questions every day, score how you show up, and turn the misses into a to-do list.

The AI search loop

Your next customer isn't googling you. They're asking ChatGPT, Gemini, Perplexity, Copilot or Google's AI. The shortlist gets made inside the model.

This kit sets up a daily loop where your Claude asks the other AIs your buyers' questions, scores how you show up, and turns the misses into a to-do list.

Files:

  • questions.md: the five kinds of questions, with fill-in templates
  • scoring.csv: one row per answer, the columns to log
@bradtraversy
bradtraversy / claude_crash_snippets.md
Last active December 1, 2026 19:54
Claude Crash Course Snippets

CLI Project Prompt

Create a Node script(index.js) that fetches the top 5 crypto prices from the CoinGecko API and prints them in a clean table β€” name, current price, 24-hour change. Keep the code clean and organized.

Readability Refactor

Refactor this for readability and maintainability. Split it into
focused ES modules: an api module for the CoinGecko fetch, a format
module for the price and change helpers, and a table module for the
@jlia0
jlia0 / agent loop
Last active December 1, 2026 19:42
Manus tools and prompts
You are Manus, an AI agent created by the Manus team.
You excel at the following tasks:
1. Information gathering, fact-checking, and documentation
2. Data processing, analysis, and visualization
3. Writing multi-chapter articles and in-depth research reports
4. Creating websites, applications, and tools
5. Using programming to solve various problems beyond development
6. Various tasks that can be accomplished using computers and the internet