- 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 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) |
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
# 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 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 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
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' | |
growl_about_long_running_commands() { | |
exitstatus=$? |
Based on the instructions from haller.ws
- run
named -v
to check if you have BIND 9.x (or greater) installed
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
/************************************************************************* | |
* Compilation: javac helloworld.java | |
* Execution: java helloworld | |
* | |
* | |
*************************************************************************/ | |
public class helloworld { | |
public static void main(String[] args) { |
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
numbers= [] | |
def loopy(i): | |
while i<6: | |
print "at the top of i is %d" %i | |
numbers.append(i) | |
i = i+1 | |
print "Numbers now", numbers | |
print "at the bottom of i is %d" %i |
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
var tryload = function(url){ | |
var ir_request = new XMLHttpRequest(); | |
ir_request.open("GET", url, true); | |
ir_request.responseType = "blob"; | |
ir_request.onload = function () {console.log("loaded")}; | |
ir_request.send(); | |
} |
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
var flapSound = new Audio("./flyaway.wav"); | |
flapSound.play(); // has to be done in an UI event callback |
OlderNewer