Skip to content

Instantly share code, notes, and snippets.

View bowlercaptain's full-sized avatar

Robert Mock bowlercaptain

View GitHub Profile
@bowlercaptain
bowlercaptain / spectralRotation.py
Last active May 19, 2024 00:22 — forked from Ravarcheon/spectralRotation.py
Ravarcheon's 90-degree spectrogram rotation but with non-overwriting filenames.
import numpy as np
import soundfile as sf
from scipy.fftpack import fft, ifft
from pathlib import Path
def rotateSignal(signal,flip):
if flip:
signal = signal[::-1]
x = np.concatenate((signal, signal[1:][::-1])) # concatenating the array with a reverse of itself makes it such that the fourier transform doesn't layer over a reversed version of itself in the inverse fft
#chatgpt wrote this and then I fixed it. Still slow AF since it didg't believe in the 'all the same resolution' thing I told it.
from PIL import Image
import os
# Specify the folder containing your images
image_folder = ""
# Get a list of image filenames in the folder
image_files = [f for f in os.listdir(image_folder) if f.lower().endswith((".png", ".jpg", ".jpeg"))]
@bowlercaptain
bowlercaptain / readme.txt
Created March 16, 2024 05:30
I did bugtest this (PuzzleScript Script)
Play this game by pasting the script in http://www.puzzlescript.net/editor.html
@bowlercaptain
bowlercaptain / readme.txt
Created March 16, 2024 05:30
I did bugtest this (PuzzleScript Script)
Play this game by pasting the script in http://www.puzzlescript.net/editor.html
@bowlercaptain
bowlercaptain / readme.txt
Created March 16, 2024 05:26
I did bugtest this (PuzzleScript Script)
Play this game by pasting the script in http://www.puzzlescript.net/editor.html
@bowlercaptain
bowlercaptain / readme.txt
Created October 31, 2023 10:11
oh shit theres a lion (PuzzleScript Script)
Play this game by pasting the script in http://www.puzzlescript.net/editor.html
@bowlercaptain
bowlercaptain / readme.txt
Created October 31, 2023 09:59
Simple Block Pushing Game (PuzzleScript Script)
Play this game by pasting the script in http://www.puzzlescript.net/editor.html
@bowlercaptain
bowlercaptain / readme.txt
Created October 31, 2023 09:06
Untitled PuzzleScript Script
Play this game by pasting the script in http://www.puzzlescript.net/editor.html
@bowlercaptain
bowlercaptain / readme.txt
Created July 26, 2021 03:13
chains (PuzzleScript Script)
Play this game by pasting the script in http://www.puzzlescript.net/editor.html
@bowlercaptain
bowlercaptain / readme.txt
Created July 9, 2021 12:50
The worm puzzle (PuzzleScript Script)
Play this game by pasting the script in http://www.puzzlescript.net/editor.html