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 | |
set -e | |
set -x | |
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) | |
PROJECT_DIR="$SCRIPT_DIR/../" | |
pushd $PROJECT_DIR | |
rm -rf ./LibNoosphere.xcframework |
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
export CC="clang" | |
export CXX="clang++" | |
export CFLAGS="-fcolor-diagnostics" | |
export CXXFLAGS="-fcolor-diagnostics" | |
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/obj-firefox-release-b2g-desktop | |
mk_add_options AUTOCONF=autoconf213 | |
ac_add_options --enable-application=b2g |
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
<script> | |
function lalaj() { | |
var out = document.querySelector("pre"); | |
var a = new OfflineAudioContext(1, 44100, 44100); | |
var b = a.createBuffer(1, 44100, 44100); | |
var g = a.createGain(); | |
var bb = b.getChannelData(0); | |
for (var i = 0; i < bb.length; i++) { | |
bb[i] = 1.0; | |
} |
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
# Fish 2.0 config | |
# Utility functions | |
function sser --description "Starts a SimpleHTTPServer in the current directory" | |
if [ (count $argv) = 0 ] | |
sser 8080 | |
return | |
end |
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 | |
emcc sin.cpp -o sin.js \ | |
-s EXPORTED_FUNCTIONS="['_Sin_constructor','_Sin_destructor','_Sin_setFrequency','_Sin_setAmplitude','_Sin_getFrequency','_Sin_computeBuffer']" | |
cat sin-proxy.js >> sin.js |
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
# From https://github.com/kripken/emscripten/wiki/Tutorial | |
cd ~/ | |
curl http://llvm.org/releases/3.2/clang+llvm-3.2-x86_64-apple-darwin11.tar.gz > llvm.tgz | |
tar xzvf llvm.tgz | |
ln -s clang+llvm-3.2-x86_64-apple-darwin11 llvm | |
git clone git://github.com/kripken/emscripten.git | |
cd emscripten | |
LLVM=~/llvm/bin ./emcc | |
LLVM=~/llvm/bin ./emcc tests/hello_world.cpp |
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
<!doctype html> | |
<script> | |
function pause() { | |
console.log('pause') | |
node.disconnect() | |
} | |
function play() { | |
console.log('play'); |
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
exports[key] = value for key, value of { | |
run : run | |
document : document | |
parse : parse | |
resolveSource : resolveSource | |
version : version | |
defaults : defaults | |
languages : languages | |
} |
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 http = require('http'), | |
httpProxy = require('http-proxy'); | |
// | |
// Setup proxy server with forwarding | |
// | |
var options = { | |
router: { | |
'proxytest.randylubin.com': '127.0.0.1:7200', | |
'randylubin.com': '127.0.0.1:7200', |