Based on the instructions from haller.ws
- run
named -vto check if you have BIND 9.x (or greater) installed
| /* | |
| * Downloads a sound file using XHR and decodes it using WebAudio | |
| * | |
| * @method GetAudioFromURL | |
| * @param {String} URL URL of the audio file to be downloaded. | |
| * @param {Function} onLoadCallback Callback for when the decoded AudioBuffer is ready. Callback returns an {Error} (if any) and an {AudioBuffer} | |
| * @param {Function} onProgressCallback Callback for progress event from the XHR download. | |
| * @param {AudioContext} [AudioContext] Optional AudioContext to be used for decoding. | |
| * |
| "use strict"; | |
| var AudioContext = webkitAudioContext || AudioContext; | |
| var context = new AudioContext(); | |
| var length = 44100; | |
| // 2 Buffers to hold samples | |
| var bufferSourceNode = context.createBufferSource(); | |
| var counterNode = context.createBufferSource(); |
| { | |
| "metadata": { | |
| "name": "", | |
| "signature": "sha256:05444a3a666df9d8410c09f11f59337f93fee5d8a8eb28978ad18c56128d427d" | |
| }, | |
| "nbformat": 3, | |
| "nbformat_minor": 0, | |
| "worksheets": [ | |
| { | |
| "cells": [ |
| sox $1 -n stat -freq 2>&1 | sed -n -e :a -e '1,15!{P;N;D;};N;ba' | gnuplot -p -e 'set logscale x; plot "-" with linesp' |
| var flapSound = new Audio("./flyaway.wav"); | |
| flapSound.play(); // has to be done in an UI event callback |
| 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(); | |
| } |
| 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 |
| /************************************************************************* | |
| * Compilation: javac helloworld.java | |
| * Execution: java helloworld | |
| * | |
| * | |
| *************************************************************************/ | |
| public class helloworld { | |
| public static void main(String[] args) { |
named -v to check if you have BIND 9.x (or greater) installed| 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=$? |