Skip to content

Instantly share code, notes, and snippets.

View shiwangsingh84's full-sized avatar
💭
Bulding geospatial products

Shiwang Singh shiwangsingh84

💭
Bulding geospatial products
  • Berlin
View GitHub Profile
@shiwangsingh84
shiwangsingh84 / microgpt.py
Created February 13, 2026 08:35 — 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
@shiwangsingh84
shiwangsingh84 / graph_models.md
Created August 13, 2019 13:22 — forked from rg3915/graph_models.md
Generate graphic model Django with PyGraphViz

How to generate graphic model Django with PyGraphViz?

sudo apt-get install graphviz libgraphviz-dev pkg-config
virtualenv -p python2.7 .venv
source .venv/bin/activate
pip install -r requirements.txt
pip install pygraphviz
pip uninstall pyparsing
pip install -Iv https://pypi.python.org/packages/source/p/pyparsing/pyparsing-1.5.7.tar.gz#md5=9be0fcdcc595199c646ab317c1d9a709