This file contains hidden or 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
#!/bin/bash | |
# | |
# Copy audio files from a Sony PCM-D50 and | |
# change the file extension from .WAV to .wav | |
# | |
function main { | |
local src=/media/brian/PCMRECORDER | |
local dst=. | |
if [ $# -ge 1 ]; then |
This file contains hidden or 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
#!/bin/bash | |
# | |
# Get docker container sysfs info | |
# | |
# Usage | |
# ./container-stats.bash <docker container id> | |
# | |
# Docker container id's can be found using | |
# docker ps -notrunc | |
# |
This file contains hidden or 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
#/bin/sh | |
# | |
# ... | |
# | |
# The pre-commit.sample template prefixes `git diff-index` with exec. | |
# This is a convenient way to make pre-commit exit with the status of this | |
# command, but we need to strip the exec prefix if we want to run other commands | |
# after git diff-index. | |
# | |
git diff-index --check --cached $against -- || exit 1 |
This file contains hidden or 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 <lo/lo.h> | |
#include <lo/lo_types.h> | |
void | |
lo_err(int num, | |
const char *msg, | |
const char *where) | |
{ |
This file contains hidden or 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
#!/bin/bash | |
function main { | |
sudo apt-get install \ | |
cmake \ | |
build-essential \ | |
libfftw3-dev \ | |
libxt-dev \ | |
libicu-dev \ | |
libqt4-dev \ | |
libasound2-dev \ |
This file contains hidden or 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
/** | |
* Wrap a node callback so that it doesn't have to do error-checking. | |
* Returns a function that checks for an error as the first argument. | |
* If the error is truthy and you provided an error handler, it passes | |
* the error to this function. Otherwise it calls cb with the error. | |
* If there was no error and you provided an error handler, it | |
* only passes the remaining arguments to cb. Otherwise it passes | |
* null as the first argument (the error). | |
* | |
* @param {Function} cb - function(err, ...) or function(...) |
This file contains hidden or 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
var i, | |
zmq = require('zmq'), | |
numSocks = 1000, | |
sockets = []; | |
console.log('MAX_SOCKETS=' + zmq.Context.getMaxSockets()); | |
console.log('creating sockets'); | |
for (i = 0; i < numSocks; i++) { |
This file contains hidden or 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 <assert.h> | |
#include <stddef.h> | |
#include <stdio.h> | |
#include <zmq.h> | |
#define SOCKS 1000 | |
#define ZMQ_SUCCESS 0 | |
#define ZMQ_FAILURE -1 | |
int main() { |
This file contains hidden or 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
#!/bin/sh | |
# | |
# organize the university of iowa samples by instrument type | |
# | |
function usage { | |
>&2 echo "Usage" | |
>&2 echo "$ $0 COMMAND" | |
>&2 echo "" | |
>&2 echo "COMMANDS" | |
>&2 echo " download: Download all the samples with wget" |
This file contains hidden or 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
{ | |
"name": "PlayBufExample", | |
"constants": [ | |
1, | |
0, | |
2 | |
], | |
"initialParamValues": [ | |
0 | |
], |