A dependency-cruiser reporter plugin to calculate Robert C. Martin's dependency metrics with dependency-cruiser.
- copy depcruise-config-force-dependents.js and metrics-reporter-plugin.js to the working directory
- run this:
gpg --full-generate-key
And follow the instructions. For e-mail address us the [email protected]
from your github profile
// bookmarklettalize with e.g. https://chimurai.github.io/bookmarklet/ | |
/* global document */ | |
/* eslint-disable no-console, unicorn/prevent-abbreviations, security/detect-object-injection */ | |
function htmlCollectionToArray(pElementArray) { | |
let lReturnValue = []; | |
for (let lElement of pElementArray) lReturnValue.push(lElement); | |
return lReturnValue; | |
} |
defaults delete com.apple.systempreferences AttentionPrefBundleIDs
Where I'm fast with upgrading most software I tend to wait out with major OSX upgrades till the kinks get ironed out. So today I set my machine to upgrade itself (took a few hours likely) and after logging on preference panel had a little nag icon. Apple apparently wants me to sign into their 'iCloud' offering. As I only use my laptop for writing code and making music (and an occasional youtube bing) I don't see the added value. I'm glad I took this long to upgrade because now there's all kinds of answers to fix it:
// for console.log debugging of functional chains | |
const tee = (pX, pN) => { | |
console.error(pN, pX); | |
return pX; | |
}; | |
// plug into chains like so | |
lElaborateArray | |
.filter(lowPass) | |
.map(doStuff) |
npx quicktype --src-lang schema --lang ts --just-types --explicit-unions YOUR_JSON_SCHEMA.json > YOUR_TYPSCRIPT_TYPOS.d.ts |
node --inspect-brk x.js | |
and than attach the debugger thingus |
<!-- slap this somewhere at the top --> | |
<style> | |
/* the lines within the edges */ | |
.edge:active path, | |
.edge:hover path { | |
stroke: fuchsia; | |
stroke-width: 3; | |
stroke-opacity: 1; | |
} | |
/* arrows are typically drawn with a polygon */ |
{ | |
"forbidden": [{ | |
"name": "no-circular", | |
"severity": "error", | |
"from": {}, | |
"to": { "circular": true } | |
}], | |
"options": { | |
"doNotFollow": "node_modules" | |
} |