Some ungrouped code snippets I wrote which might be helpful or reusable.
For description, please open the file/subdirectory.
I know that "code" is an uncountable noun. It just works, doesn't it?
- wave_interference.py: Plot 2D wave interference pattern.
- wnlfit.py: Weighted nonlinear least squares fitting.
- expfit_guess.py: Guess the parameters of an exponential fit.
- differential_watt_meter: A differential watt meter using Raspberry Pi Pico.
- discharger: Discharge a battery to a set voltage using Raspberry Pi Pico.
- init.m: My Mathematica startup script.
- prime2.c: List prime numbers up to a given number.
- prime3.c, prime4.c, prime5.c: List prime numbers in a given range with the Sieve of Eratosthenes.
- mkf: Like
xargsbut reads stdin and converts to a file before executing a command. - manage_hosts.py: Database of IP addresses and MAC addresses in a network.
- mactk: A MAC address toolkit.
- autoresume.py: Automatically resume processes after a reboot.
- parsereports.py: Parse DMARC aggregate reports and TLSRPT reports.
- pccommon.sty: My LaTeX preamble.
- interp.py: Convert Chinese characters to Pinyin for ASCII dumb terminals.
- uprec.c: Record system uptime.
- YUSS-detach: Defeat student control software.
- 8bit.c: Convert any audio (FFmpeg) to raw 8-bit PCM.
- debook.sh: Crop two-sided scanned book pages into single pages.
- MarsCoord.nb: The "Mars Coordinate System" implemented in Mathematica.
- wwvb_simul: Generate WWVB time code on Raspberry Pi Pico.
- Keyer.ino: A Morse code iambic keyer on ATTiny85.