Skip to content

Instantly share code, notes, and snippets.

View praneshp1org's full-sized avatar

Pranesh Pyara Shrestha praneshp1org

View GitHub Profile
@karpathy
karpathy / microgpt.py
Last active February 14, 2026 10:22
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
@praneshp1org
praneshp1org / main.dart
Created July 15, 2022 12:39
Flutter lightbulb demo. Turn on/off to make text visible
import 'dart:math';
import 'package:flutter/material.dart';
import 'dart:ui' as ui;
const light = Color(0xffead481);
const textLight = Color.fromARGB(255, 173, 162, 118);
const lightBack = Color.fromARGB(255, 205, 197, 163);
const background = Color.fromARGB(255, 15, 11, 2);