Skip to content

Instantly share code, notes, and snippets.

View spava's full-sized avatar

Spencer Churchill spava

View GitHub Profile
@spava
spava / usefuls.md
Last active August 18, 2022 17:09
just some things i repeatedly use

facts

  • exact month length: 30.436875 days

symbols

  • em dash: —
  • interrobang: ‽
@spava
spava / progress.py
Last active March 5, 2023 08:09
a simple and useful progress bar in python
import sys
import time
def progress(iterable, length=33):
count = avg = 0
total = len(iterable)
then = time.time()
for it in iter(iterable):
yield it