Skip to content

Instantly share code, notes, and snippets.

View bruno6000's full-sized avatar

bruno_always_curious bruno6000

View GitHub Profile
@Coldsp33d
Coldsp33d / iter_vs_vec_benchmark.py
Last active November 8, 2024 13:59
Comparing iteration and vectorisation with a simple example
import perfplot
import pandas as pd
def vec(df):
return df['A'] + df['B']
def vec_numpy(df):
return df['A'].to_numpy() + df['B'].to_numpy()
def list_comp(df):
@karpathy
karpathy / min-char-rnn.py
Last active May 4, 2026 07:14
Minimal character-level language model with a Vanilla Recurrent Neural Network, in Python/numpy
"""
Minimal character-level Vanilla RNN model. Written by Andrej Karpathy (@karpathy)
BSD License
"""
import numpy as np
# data I/O
data = open('input.txt', 'r').read() # should be simple plain text file
chars = list(set(data))
data_size, vocab_size = len(data), len(chars)
@joshenders
joshenders / rt-n66u_tomatousb_flash.md
Last active March 28, 2026 22:42
How to flash RT-N66U with Shibby's TomatoUSB firmware