sudo apt-get install cuetools shntool flac wavpack
wvunpack file.vw
cuebreakpoints file.cue | shnsplit -o flac file.wav
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Small function that checks if a TCP port on localhost is open. | |
# | |
# Timeout after 10 attempts. | |
# | |
# Usage: wait_port <port> | |
wait_port() ( | |
local i=0 port=$1 | |
echo "waiting on port $port" | |
# Bash has a magic filesystem that can be used to do basic TCP. | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import argparse | |
import curses | |
import json | |
import logging | |
import subprocess | |
import sys | |
import threading | |
import typing |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def get_inital_data(response): | |
data = {} | |
for inline in response.context_data['inline_admin_formsets']: | |
form = inline.formset.management_form | |
for k, v in form.initial.iteritems(): | |
data[form.prefix + '-' + k] = v | |
form = response.context_data['adminform'].form | |
for field_name in form.changed_data: | |
data[field_name] = form.fields[field_name].initial | |
return data |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%Stanford www.ai-class.com. Optional NLP Programming | |
%For test use: | |
%ai1:decode("Esp qtcde nzyqpcpynp zy esp ezatn zq Lcetqtntlw Tyepwwtrpynp hld spwo le Olcexzfes Nzwwprp ty estd jplc."). | |
%corpus test 1: http://simple.wikipedia.org/wiki/Wikipedia:List_of_1000_basic_words | |
%corpus test 2: http://www.wordfrequency.info/files/entriesWithoutCollocates.txt | |
-module(ai1). | |
-export([decode/1]). | |
decode(List) -> |
I hereby claim:
- I am kalekseev on github.
- I am kalekseev (https://keybase.io/kalekseev) on keybase.
- I have a public key whose fingerprint is D693 0C6C CBD9 274D 1D2A 8000 7AC1 ECDF D1B6 C980
To claim this, I am signing this object: