I hereby claim:
- I am doseofgose on github.
- I am doseofgose (https://keybase.io/doseofgose) on keybase.
- I have a public key ASCgphEPHYb2AsVkX0gFgP8SQX8bwnM-Dm7jP5Q-FHlalwo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
const express = require('express'); | |
const compression = require('compression'); | |
const path = require('path'); | |
const bodyParser = require('body-parser'); | |
const methodOverride = require('method-override'); | |
const sass = require('node-sass-middleware'); | |
const app = express(); |
// Use defer to perform checking after node-config has gone through default, local, etc. config files | |
const defer = require('config/defer').deferConfig; | |
// Example list of required fields - this version assumes we're just checking that key-value pairs are not undefined | |
// List values as strings of the full value, for example if you need `config.levelOne.levelTwo` in your code add | |
// the string "levelOne.levelTwo" to the list: | |
const required = [ | |
"db.server", "db.port", "db.name" | |
]; |
/* | |
* Example directive used in a project for window resize. Added restriction to only fire | |
* event in the situation that the width of the window remains static AND the height is | |
* increased. Essentially: | |
* currX === prevX && currY > prevY | |
* | |
* The use case for this was to trigger an element's recalculation in this specific | |
* situation. You can easily remove the checks on the width and height for a more general | |
* directive. | |
*/ |
/* | |
* Simple function to convert valid input for `new Date(input)` to | |
* the following format: | |
* 7 June 2016 5:07 am GMT-5 | |
* | |
* Originally was using date.toLocaleString, but it is inconsistent between | |
* browser implementations and is not in Safari stable release (it is in the | |
* nightly build at the moment). | |
*/ | |
var monthNames = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"]; |