Skip to content

Instantly share code, notes, and snippets.

View stefandoorn's full-sized avatar

Stefan Doorn stefandoorn

View GitHub Profile
@Igor-Lopes
Igor-Lopes / gitlabci-nyc-coverage.md
Created June 13, 2018 12:58
Regex for nyc code coverage in Gitlab CI

All files\s*\|\s*([0-9.]+)

@asgrim
asgrim / pre-commit
Created December 31, 2015 11:46
Never commit a broken test again...
#!/bin/bash
echo -n "Running phpunit... "
vendor/bin/phpunit --stop-on-failure --stop-on-error > /dev/null
if [ $? -ne 0 ]
then
echo "[FAILED]"
exit 1
fi
@johnhout
johnhout / Readme.md
Last active May 9, 2024 23:47
Laravel dutch validation translation file.
@justmoon
justmoon / custom-error.js
Last active April 22, 2024 17:19 — forked from subfuzion/error.md
Creating custom Error classes in Node.js
'use strict';
module.exports = function CustomError(message, extra) {
Error.captureStackTrace(this, this.constructor);
this.name = this.constructor.name;
this.message = message;
this.extra = extra;
};
require('util').inherits(module.exports, Error);