Skip to content

Instantly share code, notes, and snippets.

@technicallyfeasible
technicallyfeasible / keybase.md
Created January 31, 2020 13:30
Keybase verification

Keybase proof

I hereby claim:

  • I am technicallyfeasible on github.
  • I am techfeasible (https://keybase.io/techfeasible) on keybase.
  • I have a public key whose fingerprint is 6AB4 4A80 78CF 08BB 2BA7 6CE9 5752 A0E5 69A8 BD99

To claim this, I am signing this object:

@technicallyfeasible
technicallyfeasible / patch_istanbul.js
Created October 26, 2015 15:53
Patch Istanbul code coverage reporting to exclude skipped lines from totals
/**
* Monkey-patch the istanbul coverage computation to exclude skipped code
*/
var istanbul = require('istanbul');
function percent(covered, total) {
var tmp;
if (total > 0) {
tmp = 1000 * 100 * covered / total + 5;