Skip to content

Instantly share code, notes, and snippets.

View palcodes's full-sized avatar
🦾
it's the humans that matter

Aayush Pal palcodes

🦾
it's the humans that matter
View GitHub Profile
"""
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
@cmod
cmod / hugofastsearch.md
Last active February 11, 2026 09:42 — forked from eddiewebb/readme.md
Fast, instant client side search for Hugo static site generator
@AniketSK
AniketSK / Document.js
Created June 30, 2019 14:13
A higher order component to abstract away the connection to Firebase.
import React from 'react';
import firebase from 'firebase/app';
import { FormValidation } from '../../constants';
class Document extends React.Component {
constructor(props) {
super(props);
this.db = firebase.firestore();
this.db.settings({ timestampsInSnapshots: true });
this.willSubscribe = this.props.path != null;