-
D3.js - Data-Driven Documents
-
[GitHub] d3/d3 - Bring data to life with SVG, Canvas and HTML.
-
D3.js Tutorial – Data Visualization for Beginners | freeCodeCamp - 2021/11/24
-
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
| import * as React from 'react'; | |
| import MyContextProvider from 'context/MyContext'; | |
| import MyApplication from 'domain/Application'; | |
| export const App: React.FunctionComponent = () => <MyContextProvider><MyApplication/></MyContextProvider>; | |
| export default App; |
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
| git branch --merged | egrep -v "(^\*|master|main|staging|develop)" | xargs git branch -d |
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
| /* | |
| useful references | |
| regex pattern | |
| https://github.com/mongodb/js-bson/blob/v4.2.0/src/objectid.ts#L9 | |
| validation function | |
| https://github.com/mongodb/js-bson/blob/v4.2.0/src/objectid.ts#L301 | |
| /^([a-zA-Z0-9]{24}|[a-zA-Z0-9]{12})$/ |
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 hexToHSL(hex) { | |
| const result = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(hex); | |
| let r = parseInt(result[1], 16); | |
| let g = parseInt(result[2], 16); | |
| let b = parseInt(result[3], 16); | |
| (r /= 255), (g /= 255), (b /= 255); | |
| let max = Math.max(r, g, b), min = Math.min(r, g, b); | |
| let h, s, l = (max + min) / 2; |
Show/hide hidden folders/files
Shift + Command + .