Using Python's built-in defaultdict we can easily define a tree data structure:
def tree(): return defaultdict(tree)That's it!
Using Python's built-in defaultdict we can easily define a tree data structure:
def tree(): return defaultdict(tree)That's it!
| worker_processes 4; | |
| events { | |
| worker_connections 1024; | |
| } | |
| http { | |
| default_type application/octet-stream; | |
| log_format main '$remote_addr - $remote_user [$time_local] "$request" ' | |
| '$status $body_bytes_sent "$http_referer" ' |
| const transitionToPromise = (el, property, value) => | |
| new Promise(resolve => { | |
| el.style[property] = value; | |
| const transitionEnded = e => { | |
| if (e.propertyName !== property) return; | |
| el.removeEventListener('transitionend', transitionEnded); | |
| resolve(); | |
| } | |
| el.addEventListener('transitionend', transitionEnded); | |
| }); |
Below is the list of modern JS frameworks and almost frameworks – React, Vue, Angular, Ember and others.
All files were downloaded from https://cdnjs.com and named accordingly.
Output from ls command is stripped out (irrelevant stuff)
$ ls -lhS
566K Jan 4 22:03 angular2.min.js