Skip to content

Instantly share code, notes, and snippets.

View ndawe's full-sized avatar

Noel Dawe ndawe

View GitHub Profile
@betatim
betatim / main.py
Last active January 3, 2017 23:47
Basics for a wifi enabled speedometer for your bike 🚲. Designed for the ESP8266.
import array
import machine
import micropython
import socket
import time
html = """<!DOCTYPE html><html><head><meta http-equiv="refresh" content="5"></head><body><h1>Speed</h1>%s</body></html>"""
micropython.alloc_emergency_exception_buf(100)
@Vestride
Vestride / encoding-video.md
Last active April 24, 2024 09:59
Encoding video for the web

Encoding Video

Installing

Install FFmpeg with homebrew. You'll need to install it with a couple flags for webm and the AAC audio codec.

brew install ffmpeg --with-libvpx --with-libvorbis --with-fdk-aac --with-opus
@albertz
albertz / TaskSystem.py
Last active September 24, 2019 15:31
Multiprocessing with real subprocess (fork+exec), not just fork
"""
Here are all subprocess, threading etc related utilities,
most of them quite low level.
"""
from threading import Lock, currentThread
import sys
import os
from StringIO import StringIO