Skip to content

Instantly share code, notes, and snippets.

@Aldaviva
Aldaviva / joinmov.bat
Created January 10, 2015 08:21
Join multiple MOV files into a single MP4 without reencoding (useful for video cameras that split files every 4GB)
@echo off
if "%1"=="" (
echo usage example: join.bat video1.mov video2.mov video3.mov
echo this will create joined.mp4 in the same directory
exit /B 1
)
ffmpeg -version >nul 2>&1 || (
echo ffmpeg missing, install from http://ffmpeg.zeranoe.com/builds/
@jordanorelli
jordanorelli / receive.ck
Created January 18, 2013 22:21
polyphonic theremin for LEAP with Python and ChucK
class Voice {
int id; // id of the finger on the leapmotion
OscRecv in; // inbound communication
ADSR env => Pan2 pan => dac; // setup an ADSR envelope
Osc @ osc; // reference to the current oscillator
float x;
float y;
float z;
0 => int state;
@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 +')' : ''));
});
@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,
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/
@yonglai
yonglai / headless_selenium_server_setup.sh
Created May 22, 2017 21:59
script to set up headless selenium in Ubuntu
#!/bin/sh
set -e
if [ -e /.installed ]; then
echo 'Already installed.'
else
echo ''
echo 'INSTALLING'
echo '----------'
@nillia
nillia / chrome-headless.service
Created March 7, 2018 21:21
Chrome headless (with debug in 9222) Systemd service
[Unit]
Description=Run an instance of Chrome headless with debug in 9222
[Service]
Type=simple
Restart=always
ProtectSystem=full
DynamicUser=true
ExecStart=/usr/bin/google-chrome --headless --disable-gpu --remote-debugging-port=9222
Environment=HOME=/tmp

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
@creaktive
creaktive / tinyp2p-annotated.py
Last active February 13, 2019 11:18
tinyp2p.py 1.0 (documentation at http://freedom-to-tinker.com/tinyp2p.html)
# tinyp2p.py 1.0 (documentation at http://freedom-to-tinker.com/tinyp2p.html)
# (C) 2004, E.W. Felten
# license: http://creativecommons.org/licenses/by-nc-sa/2.0
# Annotated by Kochin Chang, Jan. 2005
# Usage:
# Server - python tinyp2p.py password server hostname portnum [otherurl]
@vovimayhem
vovimayhem / docker-compose.yml
Created June 6, 2017 21:17
ELK stack example
version: "2"
volumes:
log-data:
driver: local
services:
elasticsearch:
image: elasticsearch:5.0
ports: