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
'use strict' | |
module.exports = (grunt) -> | |
require 'coffee-errors' | |
grunt.loadNpmTasks 'grunt-contrib-copy' | |
grunt.loadNpmTasks 'grunt-contrib-coffee' | |
grunt.loadNpmTasks 'grunt-contrib-stylus' |
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/zsh | |
USER='nouser' | |
GROUP='nogroup' | |
TARGET='require to set' | |
function source | |
{ | |
find $TARGET -type f \( ! -iname '.*' \) | sed -E 's/ */ /g' | grep -vE 'mp4$' | sort -t'/' -k 5nr -k 6n | |
} |
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 | |
terminate() { | |
echo 'Usage: videothumb [-f target] [output]' | |
exit 1 | |
} | |
parseInt() { | |
echo "$@" | cut -d'.' -f1 | |
} |
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 | |
terminate() { | |
echo 'audiothumb [-f target] [output]' | |
exit 1 | |
} | |
test ! -f "$1" && terminate | |
test -z "$2" && terminate | |
test -z "`which eyeD3`" && echo 'Fatal: eyeD3 not found.' && 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
#!/bin/sh | |
terminate() { | |
echo 'pdfthumb [-f target] [page] [output]' | |
exit 1 | |
} | |
test ! -f "$1" && terminate | |
test -z "$2" && terminate | |
test -z "$3" && terminate |
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
<html> | |
<head> | |
</head> | |
<body> | |
<input type='file' id='file' name='file' multiple> | |
<script> | |
var Reader = function (arrayBuffer) { | |
this.data = new Uint8Array(arrayBuffer); | |
this.index = 0; |
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
class NSX39 | |
midi = require 'midi' | |
buffer = | |
key: 0 | |
vel: 0 | |
device: new midi.output() | |
constructor: (pattern = /NSX-39/gi)-> |