HuggingFace Page for model download: https://huggingface.co/hakurei/waifu-diffusion-v1-3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
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 |
This gist is deprecated and will not be edited in the future. Consider visit ninedraft/python-udp repo. It will not be deleted, however.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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) |
- Brace yourself
sudo apt-get update
sudo apt-get install cmake
sudo apt-get install libusb-1.0-0-dev
mkdir ~/proj
cd ~/proj
git clone https://github.com/texane/stlink stlink-repo
cd stlink-repo
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\ 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 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,
NewerOlder