View proton-mail.css
/* ProtonMail */
body { font-size: 14px }
.pm_opensans {
font-family: 'Lucida Grande', Verdana, Arial, sans-serif
View child.reducer.js
const initialState = {
export default function childReducer(state = initialState, action) {
switch (action.type) {
// process the actions as you would normally in any reducer
return Object.assign({}, state, {
View mock-mongoose-model.js
"use strict";
var mongoose = require("mongoose");
var mockMongooseModel = {};
module.exports = mockMongooseModel;
* This function is useful for tests that require Mongoose models
* loaded prior to loading the test file. This should be called in
View logger.js
"use strict";
var debug = require("debug");
// enable the "myApp" namespace by default
// returns the calling filename, but prepended with "myApp:"
function _getDecorator() {
// the code below screws up test output when a test fails,
View node-csv.js
var csv = require("csv"),
fs = require("fs");
// the job of the parser is to convert a CSV file
// to a list of rows (array of rows)
var parser = csv.parse({
columns: function(line) {
// By defining this callback, we get handed the
// first line of the spreadsheet. Which we'll
// ignore and effectively skip this line from processing
View version.js
* package.json
"name": "app-name",
"version": "0.1.0",
"scripts": {
"prestart": "git rev-parse HEAD > ./BUILD",
"start": "node app.js"
View hapi-handle-errors.js
var domain = require("domain").create();
// ...
// surround the mongo connection in a domain, to handle errors {
// connect to the database
mongoose.connect("mongodb://" + mongoConnection, function(error) {
// handle the error case
if (error) {
View hapi-basic-config.js
// --------------------------------------------
// --------------- app.js -------------------
// --------------------------------------------
"use strict";
var Hapi = require("hapi"),
yaml = require("js-yaml"),
fs = require("fs");
var config, serverOptions, serverConfiguration, server;

Keybase proof

I hereby claim:

  • I am dylants on github.
  • I am dylants ( on keybase.
  • I have a public key whose fingerprint is 3F79 80AC 2F9D 2A4D 5F5F C550 2FC5 45DB 9CF6 6BBF

To claim this, I am signing this object:

View generateHref.js
* Generates an href to a resource depending on the environment. In development,
* this will be fully qualified based on the host. Otherwise it will be relative
* without any host information.
* @param {Object} app The express app object
* @param {Object} req The express request object
* @param {String} path The relative path to the resource, for example "/members/123"
* @return {String} An href to this resource