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 python | |
import wave | |
import sys | |
from scipy import signal | |
import matplotlib.pyplot as plt | |
import numpy as np | |
if len(sys.argv) != 2: | |
print "usage: %s <wavefile>"%(sys.argv[0]) | |
sys.exit(1) |
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
$ git subrepo pull subdir | |
>>> git rev-parse --verify HEAD | |
* Fetch the upstream: git@github.com:XXX/subdir.git (subrepo_branch_that_is_not_master). | |
* Fetch 'git@github.com:XXX/subdir.git' (subrepo_branch_that_is_not_master). | |
>>> git fetch --quiet git@github.com:XXX/subdir.git subrepo_branch_that_is_not_master | |
* Get the upstream subrepo HEAD commit. | |
>>> git rev-parse FETCH_HEAD^0 | |
* Create ref 'refs/subrepo/subdir/fetch'. | |
* Deleting old 'subrepo/subdir' branch. | |
>>> git branch -D subrepo/subdir |
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
#include <stdio.h> | |
#include <string.h> | |
#include <sys/mman.h> | |
#include <unistd.h> | |
#include <stdlib.h> | |
#include <fcntl.h> | |
static int recordwidth; | |
static int comparer(const void *a, const void *b) { |