(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
superfish.pem
contains:
$ openssl x509 -in superfish.pem -text
Certificate:
Data:
Version: 3 (0x2)
/* bling.js */ | |
window.$ = document.querySelector.bind(document); | |
window.$$ = document.querySelectorAll.bind(document); | |
Node.prototype.on = window.on = function(name, fn) { this.addEventListener(name, fn); }; | |
NodeList.prototype.__proto__ = Array.prototype; | |
NodeList.prototype.on = function(name, fn) { this.forEach((elem) => elem.on(name, fn)); }; |
//Dr. Seuss once wrote, "IF." He meant, "If you give a fuck, maybe, | |
//JUST MAYBE, you can change this shitty world in some small way for | |
//the better." I might've been an writer of children's books someday, | |
//but instead, I decided to make this. So in lieu of The Lorax, | |
//let's call this The Dragon, and have my word be, "DON'T." As in, | |
//"Don't do something stupid like this the way I did, you jackass." | |
//But the truth is humans are very stubborn creatures. You probably | |
//won't listen to my advice and, chances are, neither will I. | |
//This is just an excerpt of the source code for DRAGON: A Game About |
All of the below properties or methods, when requested/called in JavaScript, will trigger the browser to synchronously calculate the style and layout*. This is also called reflow or layout thrashing, and is common performance bottleneck.
Generally, all APIs that synchronously provide layout metrics will trigger forced reflow / layout. Read on for additional cases and details.
elem.offsetLeft
, elem.offsetTop
, elem.offsetWidth
, elem.offsetHeight
, elem.offsetParent
To make this work in CSS:
background: url('images.svg#chart');
or img:
<img src="images.svg#chart">
npm users sorted by the monthly downloads of their modules, for the range May 6, 2018 until Jun 6, 2018.
Metrics are calculated using top-npm-users.
# | User | Downloads |
---|