Skip to content

Instantly share code, notes, and snippets.

View gauss256's full-sized avatar

Bruce Sharpe gauss256

View GitHub Profile
@gauss256
gauss256 / cola_test.py
Created May 5, 2018 23:42
Script to confirm that STFT can be invertible without the COLA constraint being satisfied
"""Framework to confirm that STFT is invertible even if window is not COLA
For the theory behind this, see: https://gauss256.github.io/blog/cola.html"""
import numpy as np
from scipy import signal
def stft(x, w, nperseg, nhop):
"""Forward STFT"""
X = np.array(
@gauss256
gauss256 / script.user.js
Last active October 16, 2021 04:03 — forked from Caster/script.user.js
A GreaseMonkey/TamperMonkey version of the `math-with-slack` script.
// ==UserScript==
// @name MathJax on Slack
// @namespace https://github.com/fsavje/math-with-slack
// @description Renders math on Slack using MathJax. Based on github:fsavje/math-with-slack.
// @include https://*.slack.com/messages/*
// @version 1
// @grant none
// ==/UserScript==
// See: https://github.com/fsavje/math-with-slack