I hereby claim:
- I am ruudud on github.
- I am ruudud (https://keybase.io/ruudud) on keybase.
- I have a public key whose fingerprint is EF97 8A63 DF96 F778 C0C2 263B 1911 C986 E3C1 E737
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
#!/bin/bash | |
# Source files so we can announce stuff | |
. /mnt/apps/scripts/setenv.sh | |
. /mnt/apps/scripts/hipchat_notify.sh | |
if [ $(pidof -x deploy_if_new.sh | wc -w) -gt 2 ]; then | |
echo "$(date +"%Y-%m-%d %H:%M:%S %Z") Cowardly exiting as deploy_if_new is already running" | |
exit -1 | |
fi |
var QueuedModel = Backbone.Model.extend({ | |
url: function () { | |
var delay = Math.floor(Math.random() * 7); | |
return "/echo/json/?delay=" + delay; | |
}, | |
initialize : function () { | |
this.saveQueue = jQuery.Deferred(); | |
this.saveQueue.resolve(); | |
This is some notes jotted down while trying to get an old USB sound card, connected to an Asus RT-AC66U router, to output music -- both from local MP3 files and Spotify.
Initially the idea was to run Mopidy on the router, but one of its core dependencies, libspotify, is not (yet) compiled for the MIPS architecture the Asus router runs under.
Maybe that will change some time: http://community.spotify.com/t5/Spotify-Ideas/libspotify-for-the-Mipsel-processor-Architecture/idi-p/36599
For now, Mopidy will have to run on another device on the network, and stream audio to the router.
#!/usr/bin/env bash | |
set -e | |
# Find unicode chars outside ASCII range recursively from this directory | |
chars=$(grep -r -P -n "[\x80-\xFF]" . | awk -F':' '{print $1 ";" $2}') | |
for fileandline in $chars; do | |
arrIN=(${fileandline//;/ }) | |
filename=${arrIN[0]} |
#!/bin/bash | |
TXTBLD=$(tput bold) | |
TXTRST=$(tput sgr0) | |
JVMS="/System/Library/Java/JavaVirtualMachines" | |
JAVA7="jdk1.7.0_17.jdk" | |
JDKS="~/.jdks" | |
usage () { |
package editio; | |
import java.io.IOException; | |
import javax.servlet.ServletException; | |
import javax.servlet.annotation.WebServlet; | |
import javax.servlet.http.HttpServlet; | |
import javax.servlet.http.HttpServletRequest; | |
import javax.servlet.http.HttpServletResponse; |
var assert = buster.assertions.assert; | |
var refute = buster.assertions.refute; | |
var testCase = buster.testCase('my views', { | |
'spy reg': function () { | |
var View = Backbone.View.extend({ | |
events: { 'click': 'myclick' }, | |
myclick: function () { | |
console.log('orig handler click'); | |
} |
#!/bin/bash | |
# | |
# Depends on buster.js and phantom.js being installed | |
# | |
BUSTERPATH_OSX="/usr/local/lib/node_modules/buster" | |
BUSTERPATH_GNU="/usr/lib/node_modules/buster" | |
BUSTER_PHANTOMSCRIPT="script/phantom.js" | |
BUSTER_CMD="buster-server" |