note: I converted this script into the much easier to install joinopenwifi
module on NPM
see https://github.com/maxogden/joinopenwifi#joinopenwifi for installation instructions
module.exports = function(grunt) { | |
grunt.initConfig({ | |
pkg: grunt.file.readJSON('package.json'), | |
app: { | |
name: '<%= pkg.name %>' | |
}, | |
clean: { |
'use strict'; | |
/** | |
* Module dependencies. | |
*/ | |
const Hoek = require('hoek'); | |
const Limiter = require('ratelimiter'); | |
const RedisClient = require('../utils/redis'); | |
const ReplyUtil = require('../utils/reply'); |
var sip = require('sip'); | |
var sys = require('sys'); | |
var redis = require('redis'); | |
//Trim leading and trailing whitespace from string values. | |
function trim(str) { | |
return str.replace(/^\s+|\s+$/g, ''); | |
} | |
sip.start({},function(request) { |
var moment = require('moment'); | |
var tz = require('timezone/loaded'); | |
var time = require('time'); | |
module.exports = function() { | |
var strftime_format = '%F %T %z'; // used to convert a date into a normalized strftime format with timezone | |
var moment_format = 'YYYY-MM-DD HH:mm:ss zz'; // moment.js LDML format for parsing date strings | |
/** | |
* Convert a Javascript Date into node-time wrapper with the appropriate timezone. |
#!/usr/bin/env node | |
var cordova_util = require('cordova/src/util'); | |
var projectRoot = cordova_util.isCordova(process.cwd()); | |
var projectXml = cordova_util.projectConfig(projectRoot); | |
var projectConfig = new cordova_util.config_parser(projectXml); | |
projectConfig.name(); | |
var fs = require ('fs'); |
#!/usr/bin/env node | |
var GCC_PREPROCESSOR_DEFINITIONS = '"$(inherited) DISABLE_PUSH_NOTIFICATIONS=1"'; | |
var fs = require("fs"); | |
var path = require("path"); | |
var xcode = require('xcode'); | |
var projectRoot = process.argv[2]; | |
function getProjectName(protoPath) { |
// extern crate take5; | |
// extern crate remote; | |
use std::io::{Read, Write}; | |
use std::net::{SocketAddr, TcpStream, TcpListener, Shutdown}; | |
use std::thread; | |
use std::time::Duration; | |
use std::sync::{Arc, Mutex}; | |
// use take5::player::AiPlayer; | |
// use remote::Client; |
note: I converted this script into the much easier to install joinopenwifi
module on NPM
see https://github.com/maxogden/joinopenwifi#joinopenwifi for installation instructions
// Wire up LCD as described here: | |
// http://learn.adafruit.com/character-lcds/overview | |
var five = require("johnny-five"), | |
board, lcd; | |
board = new five.Board(); | |
board.on("ready", function() { |
// Run Redis - cd redis-2.2.4 and run src/redis-server | |
var sip = require('sip'); | |
var sys = require('sys'); | |
var redis = require('redis'); | |
var tropoapi = require('tropo-webapi'); | |
//Trim leading and trailing whitespace from string values. | |
function trim(str) { | |
return str.replace(/^\s+|\s+$/g, ''); |