Skip to content

Instantly share code, notes, and snippets.

@kuguma
kuguma / wave_split.py
Created July 25, 2022 10:34
waveファイルを無音区間で分割して吐き出すやつ
from struct import unpack
from scipy.io import wavfile
import scipy.io
import numpy as np
import os, sys
import glob
threshold = 0
package generic_cont_example
trait ~> [-F[_], +G[_]] {
def run[A](fa: F[A]): G[A]
}
final case class ContT[M[_], A](x: λ[a => A => M[a]] ~> M) {
def map[B](f: A => B): ContT[M, B] =
ContT[M, B](
@unarist
unarist / mastodon-add-abbr.user.js
Last active September 6, 2018 04:53
:don: - スラングにabbrつけるやつ
// ==UserScript==
// @name :don: - スラングにabbrつけるやつ
// @namespace https://github.com/unarist/
// @version 0.21.1
// @author unarist
// @match https://mstdn.maud.io/*
// @grant none
// @downloadURL https://gist.github.com/unarist/ce93c77eee6ff9bf51491ff06a3109d3/raw/mastodon-add-abbr.user.js
// @noframes
// ==/UserScript==