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
choco install git.install | |
choco install nodejs.install | |
choco install notepadplusplus.install | |
choco install GoogleChrome | |
choco install flashplayerplugin | |
choco install adobereader | |
choco install ffmpeg | |
choco install vlc | |
choco install nodejs.install | |
choco install filezilla |
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
npm install -g gulp | |
npm install -g jshint | |
npm install -g phantomjs | |
npm install -g browserify | |
npm install -g http-server | |
npm install -g bower | |
npm install -g ngrok | |
npm install -g nodemon | |
npm install -g node-inspector | |
npm install -g webpack |
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
//http://mobiforge.com/design-development/html5-mobile-web-device-orientation-events | |
(function(window, $) { | |
window.OrientationPublisher = { | |
active: false | |
}; | |
//Setup listener | |
OrientationPublisher.init = function() { | |
if (window.DeviceOrientationEvent && !OrientationPublisher.active) { | |
window.addEventListener("deviceorientation", OrientationPublisher.orientationChange, false); |
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> | |
<!-- HTML5 Hello world by kirupa - http://www.kirupa.com/html5/getting_your_feet_wet_html5_pg1.htm --> | |
<html lang="en-us"> | |
<head> | |
<meta charset="utf-8"> | |
<title>Near Me</title> | |
<style type="text/css"> | |
</style> | |
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script> |
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
(function($){ | |
var options = { | |
collapse: true, | |
expandHtml: "▶", | |
collapseHtml: "▼" | |
}; | |
var makeCollapsable = function($wpElement, optionOverrides) { | |
$.extend(options, optionOverrides); | |
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
(function ($, window) { | |
var defaults = { | |
//not sure if we'll have defaults | |
}; | |
var DroopyDatepicker = function (el, options) { | |
this.$element = $(el); | |
this.options = $.extend({}, defaults, options); | |
this._defaults = defaults; | |
this.init(); | |
}; |
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 storage = localStorage; | |
var cache = {}; | |
cache.setStorageType = function(localOrSessionStorage) { | |
storage = localOrSessionStorage | |
} | |
var _isExpired = function(cacheValue) { | |
return (cacheValue.expiration) && ((new Date()).getTime() > cacheValue.expiration); | |
}; |
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
// THIS IS A NODEJS WEB SERVER RUNNING ON PI | |
var bodyParser = require("body-parser"); | |
var express = require("express"); | |
var createGuid = require('node-uuid').v4; | |
var app = express(); | |
app.use(bodyParser.json()); //to handle POST body | |
// THESE DONT EXIST YET | |
var azureCam = require("azure-cam"); // bschlintz npm published module |
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 middlewarify = function(pre, post) { | |
post = post || function(next) { next() } | |
var doIt = function(next, params) { | |
return pre(next, params); | |
} | |
var func = function(params) { | |
func.use(post) | |
return new Promise((resolve, reject) => { |
OlderNewer