Recent releases have been pre-built using cross-compilers and this script and are downloadable below.
If you have found these packages useful, give me a shout out on twitter: @adammw
'========================================================================== | |
' JSON Encoder for VBScript | |
' Copyright (c) 2013 Atif Aziz. All rights reserved. | |
' | |
' Licensed under the Apache License, Version 2.0 (the "License"); | |
' you may not use this file except in compliance with the License. | |
' You may obtain a copy of the License at | |
' | |
' http://www.apache.org/licenses/LICENSE-2.0 | |
' |
var net = require('net'); | |
var fs = require('fs'); | |
// file name for the current log | |
var fileName = __dirname + '/log_' + new Date().getTime(); | |
// Start a TCP Server | |
var server = net.createServer(function (socket) { | |
// Log what the TV sends |
/** | |
* Module dependencies. | |
*/ | |
var ogg = require('ogg'); | |
var vorbis = require('vorbis'); | |
var oe = new ogg.Encoder(); | |
var ve = new vorbis.Encoder(); |
#!/usr/bin/env sh | |
export AR=arm-unknown-linux-gnueabi-ar | |
export CC=arm-unknown-linux-gnueabi-gcc | |
export CXX=arm-unknown-linux-gnueabi-g++ | |
export LINK="$CXX" | |
export CFLAGS="-march=armv6j -mfpu=vfp -mfloat-abi=hard" | |
export CXXFLAGS="$CFLAGS" | |
make binary BINARYNAME=node-v`python tools/getnodeversion.py`-linux-arm-pi DESTCPU=arm CONFIG_FLAGS="--dest-os=linux" |
/** | |
* Module dependencies. | |
*/ | |
var fs = require('fs'); | |
var ogg = require('ogg'); | |
var lame = require('lame'); | |
var vorbis = require('vorbis'); |
var fs = require('fs'); | |
var lame = require('lame'); | |
var Speaker = require('speaker'); | |
fs.createReadStream(process.argv[2]) | |
.pipe(new lame.Decoder()) | |
.on('format', function (format) { | |
this.pipe(new Speaker(format)); | |
}); |
app.filter('bytes', function() { | |
return function(bytes, precision) { | |
if (isNaN(parseFloat(bytes)) || !isFinite(bytes)) return '-'; | |
if (typeof precision === 'undefined') precision = 1; | |
var units = ['bytes', 'kB', 'MB', 'GB', 'TB', 'PB'], | |
number = Math.floor(Math.log(bytes) / Math.log(1024)); | |
return (bytes / Math.pow(1024, Math.floor(number))).toFixed(precision) + ' ' + units[number]; | |
} | |
}); |
/** | |
* Searches the interval from <tt>lowerLimit</tt> to <tt>upperLimit</tt> | |
* for a root (i.e., zero) of the function <tt>func</tt> with respect to | |
* its first argument using Brent's method root-finding algorithm. | |
* | |
* Translated from zeroin.c in http://www.netlib.org/c/brent.shar. | |
* | |
* Copyright (c) 2012 Borgar Thorsteinsson <[email protected]> | |
* MIT License, http://www.opensource.org/licenses/mit-license.php | |
* |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Reflection; | |
using System.Xml; | |
using System.Xml.Linq; | |
/// <summary> | |
/// Extension methods for the dynamic object. | |
/// </summary> |
Recent releases have been pre-built using cross-compilers and this script and are downloadable below.
If you have found these packages useful, give me a shout out on twitter: @adammw