Skip to content

Instantly share code, notes, and snippets.

@harubaru
harubaru / wd1-3-release.md
Last active June 29, 2025 06:36
Official Release Notes for Waifu Diffusion 1.3
@psobot
psobot / kos_file_dumper.py
Last active June 13, 2023 16:27
Kurzweil KOS File Packer/Unpacker
"""
Kurzweil K2500/K2600 KOS operating system update file packer/repacker
by Peter Sobot, Nov 6, 2021
@psobot / github@petersobot.com
Requirements: none! Pure Python. Just use Python 3.2+.
"""
import os
import math
@ninedraft
ninedraft / README.md
Last active July 6, 2024 05:58
Python udp broadcast client server example.

Python udp broadcast client-server example

⚠️ ❗ ATTENTION ❗ ⚠️

This gist is deprecated and will not be edited in the future. Consider visit ninedraft/python-udp repo. It will not be deleted, however.

⚠️ ❗ ATTENTION ❗ ⚠️

@DesignA-Electronics
DesignA-Electronics / network-keep-alive.py
Last active December 16, 2018 21:34
Python example of UDP Broadcast packet transmission
#!/usr/bin/env python
import socket
import time
if __name__ == '__main__':
UDP_IP = "10.255.255.255"
UDP_PORT = 12345
MESSAGE = "KEEP ALIVE"
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
@tstellanova
tstellanova / stlink-raspi.md
Last active June 7, 2025 15:50
Install st-link on raspberry pi
@a-r-d
a-r-d / convert-and-split.sh
Last active November 22, 2024 21:02
How to take an annoying APE + CUE file cd rip and convert it into a set of FLAC or MP3 files on ubuntu.
#first install all the things:
sudo apt-get install flac ffmpeg mp3splt libav-tools shntool
# Okay first lets do an MP3:
# input files:
# --> cd.ape
# --> cp.cue
# (there are other options, like bitrate, but this is just the bare bones)
avconv -i cd.ape cd.mp3
@stephanh42
stephanh42 / stddev.fs
Created October 29, 2014 19:24
Computing mean and population standard deviation in Forth.
\ Computing mean and population standard deviation in Forth.
\ Tested on Gforth 0.7.0
16 constant FRAC \ number of bits behind fixed-point
\ convert from/to fixed point representation
: s>fix FRAC lshift ;
: fix>s FRAC rshift ;
\ fixed-point arithmetic
/* fix_fft.c - Fixed-point in-place Fast Fourier Transform */
/*
All data are fixed-point short integers, in which -32768
to +32768 represent -1.0 to +1.0 respectively. Integer
arithmetic is used for speed, instead of the more natural
floating-point.
For the forward FFT (time -> freq), fixed scaling is
performed to prevent arithmetic overflow, and to map a 0dB
sine/cosine wave (i.e. amplitude = 32767) to two -6dB freq
@SoMutchToDo
SoMutchToDo / prj2012052.py
Created February 26, 2012 16:14
Read Text File and Send via Serial
#!/usr/bin/python
# Author: SoMutchToDo
# Feel free to reuse my work
# Last Updated 2012-02-27
# Read a text file and send a signal to arduino via a serial connection
print "\nPython Script prj201205-01.py loaded"
print "Starting program"

Enth

Copyright

Enth is Copyright (c) 2002 Sean Pringle. This version of Enth is released to the Public Domain.

Enth comes with ABSOLUTELY NO WARRANTY. No responsibility for anything will be assumed by Sean Pringle. By using Enth or it's applications, including Flux, you agree there is no implied warranty with regard to useability,