Skip to content

Instantly share code, notes, and snippets.

@rudolfbyker
rudolfbyker / split_wav.py
Created April 25, 2017 10:35
Split WAV files at silence
#!/usr/bin/env python
from scipy.io import wavfile
import os
import numpy as np
import argparse
from tqdm import tqdm
# Utility functions

1. Clone your fork:

git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git

2. Add remote from original repository in your forked repository:

cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
@mylk
mylk / selenium.service
Created August 16, 2016 14:17
Selenium standalone server systemd script
# /etc/systemd/system/selenium.service
# assumes selenium server and chromedriver exist in the following paths:
# /var/selenium/selenium-server-standalone-2.45.0.jar
# /var/selenium/chromedriver
[Unit]
Description=Selenium Standalone Server
Requires=xvfb.service
After=xvfb.service
@kastnerkyle
kastnerkyle / lm_example.ipynb
Last active September 4, 2019 18:56 — forked from yoavg/lm_example
Unreasonable Effectiveness of LMs
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@kastnerkyle
kastnerkyle / handwriter.py
Last active September 4, 2019 18:57
Single file handwriting experiment
# Author: Kyle Kastner
# License: BSD 3-clause
# Thanks to Jose (@sotelo) for tons of guidance and debug help
# Credit also to Junyoung (@jych) and Shawn (@shawntan) for help/utility funcs
# Strangeness in init could be from onehots, via @igul222. Ty init for one hot layer as N(0, 1) just as in embedding
# since oh.dot(w) is basically an embedding
import os
import re
import tarfile
from collections import Counter
Found: master for edobashira/speech-language-processing — A curated list of speech and natural language processing resources — 1126⭐️ — last updated 1 day ago
🔎 Checking 113 links
✅ https://cdn.rawgit.com/sindresorhus/awesome/d7305f38d29fed78fa85652e3a63e154dd8e8829/media/badge.svg
🔶 302 http://www.mitpressjournals.org/doi/pdf/10.1162/COLI_a_00198
✅ http://openfst.org/twiki/pub/Contrib/FstContrib/categorial-1.3.3.tar.gz
✅ https://github.com/moodmosaic/Fare
✅ https://github.com/bayandin/awesome-awesomeness
✅ https://github.com/sindresorhus/awesome
✅ https://github.com/graehl/carmel
✅ https://code.google.com/p/foma/
@unohee
unohee / Bjorklund.cpp
Last active April 6, 2024 15:29
Bjorklund Algorithm in C++
#include "Bjorklund.h"
//Edited NoisyLittleBurger's Bjorklund Algorithm in C
//http://www.noisylittlebugger.net/diy/bjorklund/Bjorklund_Working_Final/Bjorklund_algorithm_arduino.txt
//CHANGED :
//1. use dynamic array.
//2. fixed sequence's off-spot problem
//3. added Explanation about Algorithm based on G.Touissant's Paper,
//"The Euclidean Algorithm Generates Traditional Musical Rhythms"
//
@michaelmob
michaelmob / Phantom-Sequence.js
Created September 13, 2015 04:12
Phantomjs functions in a sequence instead of the awful nesting.
var Sequence = function() {
this.iter = 0;
this.funcs = [];
this.waitFor = function(testFx, onReady, onTimeOut, timeOutMillis) { // Modified!!!
/* https://github.com/ariya/phantomjs/blob/master/examples/waitfor.js
view github page for credits */
var maxtimeOutMillis = timeOutMillis ? timeOutMillis : 3000, //< Default Max Timout is 3s
start = new Date().getTime(),
condition = false,
@karpathy
karpathy / min-char-rnn.py
Last active April 23, 2024 17:55
Minimal character-level language model with a Vanilla Recurrent Neural Network, in Python/numpy
"""
Minimal character-level Vanilla RNN model. Written by Andrej Karpathy (@karpathy)
BSD License
"""
import numpy as np
# data I/O
data = open('input.txt', 'r').read() # should be simple plain text file
chars = list(set(data))
data_size, vocab_size = len(data), len(chars)
@Je55eah
Je55eah / sitecrawler.js
Last active June 7, 2017 21:40
Website Crawler using PhantomJS
var targetAddress = 'http://www.autohotkey.com/board/';
var fileCount = 0;
phantom.onError = function(msg, trace) {
var msgStack = ['PHANTOM ERROR: ' + msg];
if (trace && trace.length) {
msgStack.push('TRACE:');
trace.forEach(function(t) {
msgStack.push(' -> ' + (t.file || t.sourceURL) + ': ' + t.line + (t.function ? ' (in function ' + t.function +')' : ''));
});