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() { |
| 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. |
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
| #!/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'); |
Read the blog at http://fokkezb.nl/2013/09/20/url-schemes-for-ios-and-android-2/
| module.exports = function(grunt) { | |
| grunt.initConfig({ | |
| pkg: grunt.file.readJSON('package.json'), | |
| app: { | |
| name: '<%= pkg.name %>' | |
| }, | |
| clean: { |
| #!/bin/bash | |
| # | |
| # description: DevShelf service | |
| # processname: node | |
| # pidfile: /var/run/devshelf.pid | |
| # logfile: /var/log/devshelf.log | |
| # | |
| # Based on https://gist.github.com/jinze/3748766 | |
| # | |
| # To use it as service on Ubuntu: |
[your-slack].slack.com/services/new/hubotIf you want to rename the automatically generated heroku domain name:
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.