Documentation: https://github.com/npm/registry/blob/master/docs/download-counts.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// source: https://developer.ibm.com/node/2016/01/06/tips-optimizing-slow-code-in-nodejs/ | |
// the resulting logfile can be imported into google chrome's JavaScript profiler (which seems | |
// to be deprecated???) | |
const profiler = require('v8-profiler'); | |
const fs = require('fs'); | |
let profilerRunning = false; | |
function toggleProfiling () { |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Here is stuff.
Here's the uitklappertje. With all kinds of stuff.
console.log('hi');
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://broken-by.me/lazy-load-nvm/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<style> | |
*[style], | |
a:not([href]) | |
a[href="#"], | |
a[href=""], | |
a[href*="javascript:void(0)"], | |
img:not([alt]):not(aria-hidden="true"), | |
img[alt=""], | |
html:not([lang]), | |
html[lang=""], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# you can check that with ssh-add | |
ssh-add -l | |
# response when these steps need to be taken: 'The agent has no identities.' | |
# response when everything ok would be more like: '2048 SHA256:yourkey /Users/youryousername/.ssh/id_rsa (RSA)' | |
# start the ssh-agent | |
ssh-agent -s | |
# add your keys. | |
ssh-add ~/.ssh/id_rsa |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Good font with ligatures: Fira Code | |
Embedding a font in a package: https://github.com/adilparvez/atom-hasklig |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[format] | |
pretty = %Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset |
The recipe in previous revisions of this gist is obsolete as dependency-cruiser supports typescript (and coffeescript, livescript) out of the box since december 2016, so it's currently as simple as:
npm i --global dependency-cruiser
# ... assuming your source is in src, you can dump the dependencies
# (including those in node_modules) to a file with:
depcruise -T json -f dependencies.json src
# or if you want to make a graph - send it through graphviz dot