start new:
tmux
start new with session name:
tmux new -s myname
| @Override | |
| public void onCreate(Bundle savedInstanceState) { | |
| super.onCreate(savedInstanceState); | |
| TableLayout table = new TableLayout(this); | |
| table.setStretchAllColumns(true); | |
| table.setShrinkAllColumns(true); | |
| TableRow rowTitle = new TableRow(this); |
| function [aspectrum,wts] = audspec(pspectrum, sr, nfilts, fbtype, minfreq, maxfreq, sumpower, bwidth) | |
| %[aspectrum,wts] = audspec(pspectrum, sr, nfilts, fbtype, minfreq, maxfreq, sumpower, bwidth) | |
| % | |
| % perform critical band analysis (see PLP) | |
| % takes power spectrogram as input | |
| if nargin < 2; sr = 16000; end | |
| if nargin < 3; nfilts = ceil(hz2bark(sr/2))+1; end | |
| if nargin < 4; fbtype = 'bark'; end | |
| if nargin < 5; minfreq = 0; end |
| import numpy as np | |
| def rastaplp(signal, sr = 16000, modelorder = 8): | |
| # powerspectrum | |
| p_spectrum = powspec(signal, sr) | |
| # group powerspectrum to critical band | |
| a_spectrum = audspec(p_spectrum, sr) | |
| nbands = len(a_spectrum[0]) |
| from scipy.optimize import brentq | |
| from scipy.interpolate import interp1d | |
| eer = brentq(lambda x : 1. - x - interp1d(fpr, tpr)(x), 0., 1.) | |
| thresh = interp1d(fpr, thresholds)(eer) |
| #!/bin/sh | |
| text_magenta=$(tput setaf 5) | |
| text_bold=$(tput bold) | |
| text_normal=$(tput sgr0) | |
| archives_path=~/"Library/Developer/Xcode/Archives" | |
| derived_data_path=~/"Library/Developer/Xcode/DerivedData" | |
| simulator_data_path=~/"Library/Developer/CoreSimulator/Devices" | |
| device_support_path=~/"Library/Developer/Xcode/iOS DeviceSupport" |
| #!/bin/bash | |
| FILE=$1 | |
| MESSAGE=$(cat $FILE) | |
| TICKET="$(git rev-parse --abbrev-ref HEAD | grep -Eo '(\w+/)?(\w+-)?[0-9]+' | tail -1 | grep -Eo '(\w+[-])?[0-9]+' | tr "[:lower:]" "[:upper:]") :" | |
| if [[ $TICKET == " :" || "$MESSAGE" == "$TICKET"* ]];then | |
| exit 0; | |
| fi | |
| echo "$TICKET $MESSAGE" > $FILE |
| curl -o .git/hooks/prepare-commit-msg https://gist.githubusercontent.com/muhrifqii/a8a4e140040f54b3452ef14b9c31d9c3/raw | |
| chmod +x .git/hooks/prepare-commit-msg |