Skip to content

Instantly share code, notes, and snippets.

@srubin
srubin / counting.pcm
Created August 26, 2021 19:00
rev.ai streaming issue with start timestamps
@srubin
srubin / Procfile
Last active October 30, 2019 00:14
Hapi 16 POST bug
web: node hapi16.js
@srubin
srubin / build-gstreamer.sh
Last active September 11, 2018 18:58 — forked from jackersson/build-gstreamer.sh
Build gstreamer from source
#!/bin/bash
# Set your target branch
BRANCH="1.14.2"
exec > >(tee build-gstreamer.log)
exec 2>&1
# [ ! -d orc ] && git clone git://anongit.freedesktop.org/git/gstreamer/orc
# [ ! -d gstreamer ] && git clone git://anongit.freedesktop.org/git/gstreamer/gstreamer
@srubin
srubin / kinoma_mailgun.js
Created April 24, 2015 17:46
Send emails in Kinoma with Mailgun
Handler.bind("/sendEmail", {
onInvoke: function(handler, message) {
var apiKey = "key-aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa";
var sandboxUrl = "api.mailgun.net/v3/sandboxAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA.mailgun.org/messages";
var messageUrl = "https://api:" + apiKey + "@" + sandboxUrl;
var message = new Message(messageUrl);
message.method = "POST";
var emailDetails = {
@srubin
srubin / keybase.md
Created March 27, 2014 19:15
keybase proof

Keybase proof

I hereby claim:

  • I am srubin on github.
  • I am srubin (https://keybase.io/srubin) on keybase.
  • I have a public key whose fingerprint is 387A 986E 6A31 1E5F D58A 9AE1 FCB9 A6C2 051F 1089

To claim this, I am signing this object:

@srubin
srubin / assign_nuggets.py
Created December 14, 2013 20:56
Simple labeling and analysis code for my cs294-10 Visualization project, Fall 2013.
import sys
import csv
import os
import numpy as N
import vincent
import simplejson as json
# voiceboxmongo provides a connection to my database,
# which stores data from Mechanical Turk
@srubin
srubin / pronunciation.py
Last active October 19, 2018 16:29
Get arpabet pronunciation for a list of words (will also guess pronunciation if it's not in the CMU Sphinx dictionary). This basically just calls a CMU Sphinx tool online (lmtool: http://www.speech.cs.cmu.edu/tools/lmtool-new.html) and parses the results.
"""
Get the arpabet pronunciation of a set of words, courtesy
of the CMU Sphinx pronunciation dictionary (and their
tools to determine the pronunciation of unknown words).
Usage: create a pronounce object, add words to pronounce object
run .p()
Command line: python pronunciation.py list of words to pronounce