Skip to content

Instantly share code, notes, and snippets.

View nitaruto's full-sized avatar

Toru Taniguchi nitaruto

View GitHub Profile
@nitaruto
nitaruto / a_weight_fir_16k.txt
Last active September 15, 2021 06:34
A-weighting filter (16kHz sampling) for SoX. Filter coefficient was picked up from FaNT (http://dnt.kr.hs-niederrhein.de/indexbd2f.html?option=com_content&view=article&layout=default&id=22&Itemid=15&lang=en)
-1.6382357e-06
-1.2934910e-06
-1.7385587e-06
-1.3888608e-06
-1.8607494e-06
-1.5019314e-06
-2.0060450e-06
-1.6312799e-06
-2.1713256e-06
-1.7674181e-06
@nitaruto
nitaruto / git_ghost_install_memo.md
Last active January 27, 2022 08:57
install memo of git-ghost on Ubuntu 16.04
sudo apt-get install golang

# set in ~/.bashrc like:
export GOPATH=$HOME/work/go
export PATH=$GOPATH/bin:$PATH

mkdir -p $GOPATH
go get golang.org/dl/go1.16
go1.16 download
@nitaruto
nitaruto / comp_pow.py
Created August 26, 2021 15:18
compare x ** p vs np.exp(p * np.log(x))
#!/usr/bin/env python3
import numpy as np
import timeit
def setup(N):
x = np.random.rand(N)
return x
def pow1(x, p):