Skip to content

Instantly share code, notes, and snippets.

View scottrcarlson's full-sized avatar

nfreq scottrcarlson

View GitHub Profile
@scottrcarlson
scottrcarlson / makemore_tinygrad.py
Created September 22, 2023 19:30
pytorch vs tinygrad performance investigate (from Kaparthy's makemore MLP tutorial)
from tinygrad.tensor import Tensor
from tinygrad.nn.optim import SGD
from tinygrad.nn.state import get_parameters
from tinygrad.jit import TinyJit
import torch
import torch.nn.functional as F
import matplotlib.pyplot as plt
import time
import random

Keybase proof

I hereby claim:

  • I am scottrcarlson on github.
  • I am r2 (https://keybase.io/r2) on keybase.
  • I have a public key ASALYRalbeDRT4OlRiQQrSoAFJMPBBC6_eMyVyPWe6zQEgo

To claim this, I am signing this object:

@scottrcarlson
scottrcarlson / dc26badge_bus_emulator.py
Created August 16, 2018 21:33
DEF CON 26 Badge Emulator (Full Badge Bus Communication Protocol)
#!/usr/bin/python
import time
import serial
from crccheck.crc import Crc16AugCcitt
#DEF CON 26 Badge Bus Communication Emulator
#Requires Python / Python crccheck / TTL USB-to-Serial adapter
#Relevant Sources
#https://github.com/Wireb/badge_bus/wiki