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 + .
agile
user story
Why is the “As a… I want… So I…” format so effective?
It succinctly captures the who, what, and why of the organization’s need.
-
-
How to build a React library using TypeScript - 2020/10/18
-
Creating a React component library using Storybook 6 - 2020/12/20
-
-
Building a React Components Library by Tomasz Fiechowski | Better Programming | Medium
using the terminal:
security find-generic-password -ga $WIFI_NAME | grep “password:”
tip from: How to See All Your Saved Wi-Fi Passwords on macOS | How-To Geek
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'; | |
| export enum JSTypeof { | |
| UNDEFINED = 'undefined', | |
| FUNCTION = 'function', | |
| OBJECT = 'object', | |
| STRING = 'string', | |
| NUMBER = 'number', | |
| } | |
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
| /* | |
| version updated to use the fetch API | |
| source: | |
| https://github.com/AdeyinkaAdegbenro/Detect_Location/blob/master/detect_location.js | |
| */ | |
| function request(url) { | |
| return fetch(url).then(response => response.json()); | |
| } |
useful links about ts/js testing on a project with Gatsby.js
-
Jest - is a delightful JavaScript Testing Framework with a focus on simplicity.