Skip to content

Instantly share code, notes, and snippets.

@domharrington
domharrington / .gitignore
Last active May 24, 2022 13:21 — forked from duyquach-castr/server-ext.js
HapiJS sample code
node_modules

Clock Committing Style Guide

To allow us to automatically create a good quality changelog from our git history we recommend the following formats for commit messages.

The aim is to capture a reference to any ticket, card, or story that this commit contributes towards.

The most important part is to capture the platform and reference number:

{Platform} #{Reference ID} {Commit Message}
@domharrington
domharrington / gist:2948559
Created June 18, 2012 14:09 — forked from bengourley/gist:2948429
Fileupload API
var fileUpload = require('file-upload')
, gridfsAdapter = require('fileupload-gridfs')
var middleware = fileUpload.createFileUpload({
adapter: gridfsAdapter({ dbName: 'mydb' })
}).middleware
Exactly the same as this, just a bit nicer for the examples:
var middleware = fileUpload.createFileUpload({