- Chye Seng Huat Hardware - https://www.facebook.com/ChyeSengHuatHardware
- Loysel's Toy - https://www.facebook.com/LoyselsToy
- Highlander Coffee - http://highlandercoffee.com/
- CupNCanvas - http://www.cupsncanvas.com/
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 | |
filename=${1%%.*} | |
extension=${1##*.} | |
outputname="$filename"_levelled.$extension | |
sox $1 $outputname highpass 80 lowpass 8000 compand 0.01,1 -80,-80,-55,-20,-20,-15,0,0 0 -40 0.1 norm -0.5 |
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
# long-running command growler | |
# hooks for zsh, built on bash version at http://hints.macworld.com/article.php?story=20071009124425468 | |
preexec_functions+='save_preexec_time' | |
save_preexec_time() { | |
export PREEXEC_CMD="$(history $HISTCMD | tail -n 1| sed 's/ *[0-9]* *//')" | |
export PREEXEC_TIME=$(date +'%s') | |
} | |
precmd_functions+='growl_about_long_running_commands' |
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
function runOnImgLoadComplete(onImgLoadCompleteCallback){ | |
var allImgs = document.images; | |
numTotalImages = imgs.length, | |
numLoadedImages = 0; | |
[].forEach.call( allImgs, function( img ) { | |
if (img.complete){ | |
numLoadedImages++; | |
if (numLoadedImages == numLoadedImages) |
NewerOlder