Skip to content

Instantly share code, notes, and snippets.

View ravarcheon's full-sized avatar
🍋
!~

ravarcheon ravarcheon

🍋
!~
View GitHub Profile
@ravarcheon
ravarcheon / theHorse.txt
Last active March 2, 2026 02:59
the horse that blocks your screen after a 2 minutes
// ==UserScript==
// @name the horse that stands in your way
// @namespace http://tampermonkey.net/
// @version 2026-03-01
// @description no more than 2 minutes of twitter. the first minute is a clear view, the second minute is where the horse slowly fades in. third minute and beyond there is nothing to see except horse
// @author You
// @match http*://*.x.com/*
// @match http*://*.instagram.com/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=x.com
// @grant none
@ravarcheon
ravarcheon / spectralRotation.py
Last active September 22, 2025 11:00
rotates an audio file by 90 degrees in the spectrum while being a reversible process with minimal loss (only floating point errors which are like -150 dB but thats literally silence ahaha~)
import numpy as np
import soundfile as sf
from scipy.fftpack import fft, ifft
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
rotSig = ifft(x)