This file contains hidden or 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
'use strict'; | |
var gulp = require('gulp'); | |
var open = require('open'); | |
var wiredep = require('wiredep').stream; | |
var nodemon = require('nodemon'); | |
var livereload = require('gulp-livereload'); | |
var htmlmin = require('gulp-htmlmin'); | |
var concat = require('gulp-concat'); | |
var uglify = require('gulp-uglify'); |
This file contains hidden or 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
$.post('/newsletter/subscribe', { email: $('input.subscribe-input').val() }, function(data) { | |
if (data.error) { | |
return console.log(data.error); | |
} | |
$('.successful-subscribe').show(); | |
}); |
This file contains hidden or 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
/** | |
* Control the express shippping errors alert. | |
*/ | |
$only_autom_products_in_shopping_cart = true; | |
foreach ($products as $product) | |
{ | |
// is not a shipping method and is not a manufacturer product | |
if (! in_array($product['products']['products_id'], [416, 318]) && $product['manufacturers_id'] == 0) | |
{ | |
$only_autom_products_in_shopping_cart = false; |
This file contains hidden or 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
'use strict'; | |
var gulp = require('gulp'); | |
var open = require('open'); | |
var watch = require('gulp-watch'); | |
var plumber = require('gulp-plumber'); | |
var nodemon = require('nodemon'); | |
var livereload = require('gulp-livereload'); | |
var htmlmin = require('gulp-htmlmin'); | |
var concat = require('gulp-concat'); |
This file contains hidden or 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 servolib = require('servo-pca9685'); | |
var servo = servolib.use(tessel.port['A']); | |
var servoNumber = 2; // Plug your servo or motor controller into port 1 | |
// Reenable the console | |
process.stdin.resume(); | |
console.log('Type in numbers between 0.0 and 1.0 to command the servo.'); | |
console.log('Values between 0.05 and 0.15 are probably safe for most devices,'); | |
console.log('but be careful and work your way out slowly.'); |
This file contains hidden or 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
data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAYAAABytg0kAAAAFElEQVQIW2MMDQ39z8DAwMAIYwAAKgMD/9AXrvgAAAAASUVORK5CYII= |
This file contains hidden or 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 Vue = require('vue'); | |
var Router = require('vue-router'); | |
Vue.use(Router); | |
var App = Vue.extend({ | |
template: '<h1>App</h1>{{ test }}<a v-link="/dashboard">Dashboard</a><a v-link="/daily-summary">Daily Summary</a><a v-link="/chat">Chat</a><a v-link="/secure-notes">Secure Notes</a>' + | |
'<router-view></router-view>', // <-- outlet | |
data: function() { | |
return { |
This file contains hidden or 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
_.replace = function(collection, identity, replacement) { | |
var index = _.indexOf(collection, _.find(collection, identity)); | |
collection.splice(index, 1, replacement); | |
return collection; | |
}; |
This file contains hidden or 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
/*! | |
* vue-router v0.1.0 | |
* (c) 2015 Evan You | |
* Released under the MIT License. | |
*/ | |
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):"object"==typeof exports?exports.VueRouter=e():t.VueRouter=e()}(this,function(){return function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={exports:{},id:r,loaded:!1};return t[r].call(i.exports,i,i.exports,e),i.loaded=!0,i.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){function r(t){if(!o)throw new Error("Please install the Router with Vue.use() before creating an instance.");t=t||{},this.app=null,this._children=[],this._recognizer=new a,this._guardRecognizer=new a,this._started=!1,this._currentRoute={path:"/"},this._hasPushState="undefined"!=typeof history&&history.pushState,this._notFoundHandler=t.notFound||null,this._beforeEachHook=t.beforeEach||null,this._afterEachHook=t.afterEach||null,this._hashbang=t.hashbang!==!1,this._history=!(!this._hasPushState||!t.hist |