Skip to content

Instantly share code, notes, and snippets.

t. .X
: :
|.. .|
;|... ..|/
BXii||:.. .:||i8@
@Iiiiii;||:.. ..:||/iiiiii%
XIiiiiiiit;||:.. ..:||/iiiiiiiiIt
IIiiiiiiiiiiSt|:.. ..:|SSIiiiiiiiiiIt8
ttIiiiiiiiiiiItiiiiiiiiiiitiiiiiiiiiiitttt
// Generated on <%= (new Date).toISOString().split('T')[0] %> using <%= pkg.name %> <%= pkg.version %>
'use strict';
var moment = require('moment');
var LIVERELOAD_PORT = 35729;
var lrSnippet = require('connect-livereload')({port: LIVERELOAD_PORT});
var mountFolder = function (connect, dir) {
return connect.static(require('path').resolve(dir));
};
// Generated on <%= (new Date).toISOString().split('T')[0] %> using <%= pkg.name %> <%= pkg.version %>
'use strict';
var LIVERELOAD_PORT = 35729;
var lrSnippet = require('connect-livereload')({port: LIVERELOAD_PORT});
var mountFolder = function (connect, dir) {
return connect.static(require('path').resolve(dir));
};
module.exports = function (grunt) {
// load all grunt tasks
@stephenplusplus
stephenplusplus / app.js
Last active December 14, 2015 12:08
DI thing.
// Create a module for the application.
var app = things('taptap');
// A "Service" is a once-instantiated, injectable dependency your app may need.
// "User" is a service that will handle the functionality of logging in and out
// a user. Note that it lists "Store" in the signature of the function. This
// will be caught by "thing.js" and injected into the function when it is
// called.
app.service('User', function(Store) {