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
[08/24 15:40:28 PDT] at ChildProcess.EventEmitter.emit (events.js:91:17) | |
[08/24 15:40:28 PDT] ^ | |
[08/24 15:40:28 PDT] throw errnoException(errno, 'spawn'); | |
[08/24 15:40:28 PDT] child_process.js:790 | |
[08/24 15:40:28 PDT] | |
[08/24 15:40:28 PDT] at ChildProcess.exithandler (child_process.js:534:7) | |
[08/24 15:40:28 PDT] at /opt/haibu/apps/benlower/tenexp-upload/package/node_modules/easyimage/easyimage.js:38:12 | |
[08/24 15:40:28 PDT] at format (/opt/haibu/apps/benlower/tenexp-upload/package/server.js:549:40) | |
[08/24 15:40:28 PDT] at convertImage (/opt/haibu/apps/benlower/tenexp-upload/package/server.js:615:6) | |
[08/24 15:40:28 PDT] at Object.exports.convert (/opt/haibu/apps/benlower/tenexp-upload/package/node_modules/imagemagick/imagemagick.js:189:10) |
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
// Set up a collection to contain player information. On the server, | |
// it is backed by a MongoDB collection named "players." | |
Players = new Meteor.Collection("players"); | |
if (Meteor.is_client) { | |
Template.leaderboard.players = function () { | |
return Players.find({}, {sort: {score: -1, name: 1}}); | |
}; |
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 tessel = require('tessel'); | |
// changed from './ambient-attx4' to fix Error: Could not find module "/app/ambient-attx4/index.js" | |
var ambientlib = require('ambient-attx4'); | |
var ambient = ambientlib.use(tessel.port['A']); | |
ambient.on('ready', function () { | |
// Get sound data. | |
setInterval( function () { | |
ambient.getSoundLevel( function(err, sdata) { |
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 tessel = require('tessel'); | |
var redis = require('redis'); | |
var redisClient = redis.createClient(); | |
var script = require.resolve('./device/index.js'); | |
var opts = { | |
// Stop existing script, if any | |
stop: true, | |
// Serial number (`undefined` picks the first one) | |
serial: process.env.TESSEL_SERIAL, |
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
echo "Starting up..." | |
# Check for Homebrew, | |
# Install if we don't have it | |
if test ! $(which brew); then | |
echo "Installing homebrew..." | |
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
fi | |
# Update homebrew recipes |