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
const report = {}; | |
const fs = require('fs'); | |
fs.writeFile('./test/staffReport.json', JSON.stringify(report), 'utf8', () => { console.log('hey') ;}); |
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
const config = require('../config/config.json'); | |
const moment = require('moment'); | |
const debug = require('debug')('DateHelper'); | |
class Date { | |
/** | |
* Gets the day of the week | |
* @param {[type]} date [description] | |
* @return moment date | |
*/ |
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
const sinon = require('sinon'); | |
const chai = require('chai'); | |
const expect = chai.expect; | |
const SomeController = require('../../app/controllers/SomeController') | |
describe('SomeController', () => { | |
let stub; | |
beforeEach(() => { | |
stub = sinon.stub(SomeController, 'doAPICall'); |
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
const Slack = require('slack-node'); | |
const config = require('../config/config.json'); | |
const slack = new Slack(); | |
slack.setWebhook(config.slack); | |
class SlackController { | |
sendMessage(message) { | |
slack.webhook({ | |
channel: '#integration_logging', |
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
#!/usr/bin/env bash | |
# Recursive image optimisation. Simply call imageoptim.sh <filename> | |
# Example bash imageoptim.sh /assets | |
# Requires jpegoptim and optipng (installable on mac using brew) | |
echo "---------------------------------------" | |
echo "------- PNG/JPEG File Optimiser -------" | |
echo "---------------------------------------" |
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 Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
Homebrew build logs for bazel on macOS 10.12 | |
Build date: 2016-09-26 07:56:53 |
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
Homebrew build logs for bazel on macOS 10.12 | |
Build date: 2016-09-26 07:56:53 |
NewerOlder