Skip to content

Instantly share code, notes, and snippets.

@jamak
jamak / spectralRotation.py
Created May 19, 2024 00:03 — forked from JayMcYaru/spectralRotation.py
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
from tkinter import filedialog
import tkinter as tk
import os
def open_file_dialog():
root = tk.Tk()
root.withdraw()
@jamak
jamak / Clojure
Created June 24, 2012 16:45 — forked from stuarthalloway/Datomic News Updates
Datomic update examples against a social news database
;; Datomic example code
;; demonstrates various update scenarios, using a news database
;; that contains stories, users, and upvotes
;; grab an in memory database
(use '[datomic.api :only (q db) :as d])
(def uri "datomic:mem://foo")
(d/create-database uri)
(def conn (d/connect uri))
@jamak
jamak / jam.cc
Created September 16, 2011 08:28 — forked from elcerdo/jam.cc
traffic jam
#include <cassert>
#include <sstream>
#include <string>
#include <cstdlib>
#include <ctime>
#include <iostream>
#include <list>
using std::endl;
using std::cout;