Skip to content

Instantly share code, notes, and snippets.

View mtpultz's full-sized avatar

Martin Pultz mtpultz

View GitHub Profile
@mtpultz
mtpultz / baseConverter.js
Created January 28, 2018 04:34 — forked from faisalman/baseConverter.js
Convert From/To Binary/Decimal/Hexadecimal in JavaScript
/**
* Convert From/To Binary/Decimal/Hexadecimal in JavaScript
* https://gist.github.com/faisalman
*
* Copyright 2012-2015, Faisalman <[email protected]>
* Licensed under The MIT License
* http://www.opensource.org/licenses/mit-license
*/
(function(){
@mtpultz
mtpultz / 1 example.route.ts
Last active October 26, 2017 14:28
Express-Validator v4 - Encapsulated Validations Example
const router: Router = express.Router();
// ... removed for brevity
/**
* Create a new example.
*/
router.post('/examples/:id',
exampleController.validate('create'),
exampleController.create