getVariable(domElement, '--example')
// 'hello'
getVariable(domElement, '--example', (v) => parseInt(v, 36))
// 29234652
This file contains hidden or 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
| const J = [ | |
| "WOONWOpcVmoQ", | |
| "mrlcVSoSpa==", | |
| "Esf9WPRcSa==", | |
| "WPlcP8knbCku", | |
| "rSoTwe8=", | |
| "W7dcGrJcTq==", | |
| "WPdcN8kWi8kc", | |
| "zcXAW74=", | |
| "WO/cGHz7W7C=", |
This file contains hidden or 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
| function getLonghands(property) { | |
| const element = document.createElement('div'); | |
| const style = element.style; | |
| style[property] = "inherit"; | |
| const ret = [...style]; | |
| style.cssText = ""; | |
| return ret; | |
| } |
This file contains hidden or 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
| jq '.devDependencies | keys | map(select(. | match("eslint"))) | .[]' package.json | xargs yarn remove |
This file contains hidden or 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
Show hidden characters
| { | |
| "parser": "@typescript-eslint/parser", | |
| "plugins": ["@typescript-eslint/eslint-plugin", "react", "unicorn"], | |
| "extends": [ | |
| "react-app", | |
| "@atomix/eslint-config-react", | |
| "plugin:prettier/recommended" | |
| ], | |
| "overrides": [ | |
| { |
This file contains hidden or 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
| 7 |
This file contains hidden or 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
| 589 |
This config assumes that nginx is run from docker image _/nginx.
docker network create nginx
mkdir -p /etc/myproject/nginx
cd /etc/myproject/nginx