Using NodeJS and Puppeteer.
Creating a fake data server with ExpressJS, EJS and TailwindCSS.
- Add this files do any directory
- Run
npm install
| // https://github.com/Myndex/SAPC-APCA#the-plain-english-steps-are | |
| // Example: | |
| // const contrast = getAPCAContrast("rgb(255, 255, 255)", "rgb(136, 136, 136)"); | |
| // This returns `66.89346308821438` (66.893%) | |
| // SAPC-APCA README says: | |
| // > #888 vs #fff • 66.89346308821438 | |
| // 80% means 7:1 in WCAG 2.0 | |
| // 60% means 4.5:1 in WCAG 2.0 |
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
| *[class], | |
| *[id] { | |
| position: relative; | |
| outline: 2px dashed red; | |
| } | |
| *[class]::before, *[class]::after, | |
| *[id]::before, | |
| *[id]::after { | |
| position: absolute; |
| import * as React from "react"; | |
| import { useMousePosition } from "~/hooks/useMousePosition"; | |
| /** Component to cover the area between the mouse cursor and the sub-menu, to allow moving cursor to lower parts of sub-menu without the sub-menu disappearing. */ | |
| export function MouseSafeArea(props: { parentRef: React.RefObject<HTMLDivElement> }) { | |
| const { x = 0, y = 0, height: h = 0, width: w = 0 } = props.parentRef.current?.getBoundingClientRect() || {}; | |
| const [mouseX, mouseY] = useMousePosition(); | |
| const positions = { x, y, h, w, mouseX, mouseY }; | |
| return ( | |
| <div |
| codigo | codcvm | cnpj | site | instituicao | |
|---|---|---|---|---|---|
| PATI3 | 94 | 92.693.019/0001-89 | www.panatlantica.com.br | ITAU CORRETORA ACOES | |
| PATI4 | 94 | 92.693.019/0001-89 | www.panatlantica.com.br | ITAU CORRETORA ACOES | |
| BAHI3 | 701 | 45.987.245/0001-92 | www.bahema.com.br | ITAUBANCO - ACOES | |
| BBDC3 | 906 | 60.746.948/0001-12 | www.bradesco.com.br | BRADESCO | |
| BBDC4 | 906 | 60.746.948/0001-12 | www.bradesco.com.br | BRADESCO | |
| BAZA3 | 922 | 04.902.979/0001-44 | www.bancoamazonia.com.br | BRADESCO | |
| BBAS11 | 1023 | 00.000.000/0001-91 | www.bb.com.br | BRASIL | |
| BBAS12 | 1023 | 00.000.000/0001-91 | www.bb.com.br | BRASIL | |
| BBAS3 | 1023 | 00.000.000/0001-91 | www.bb.com.br | BRASIL |
| Mute these words in your settings here: https://twitter.com/settings/muted_keywords | |
| ActivityTweet | |
| generic_activity_highlights | |
| generic_activity_momentsbreaking | |
| RankedOrganicTweet | |
| suggest_activity | |
| suggest_activity_feed | |
| suggest_activity_highlights | |
| suggest_activity_tweet |
Scrum game
Estimation exercise ~ 2 h
iteration 1 - strawberries eating association - individually, no collaboration, estimate (charge and deadline) consume x000 strawberries - 3 minutes to decide
Discuss exceptions, differences, approaches … All estimations are correct.
| # define a full backup of a git repository from one remote server to another one | |
| origin="https://remote-source/repository.git"; | |
| target="https://remote-target/repository.git"; | |
| workDir="temp-directory"; | |
| mkdir $workDir |
| // Inspired by https://twitter.com/coderitual/status/1112297299307384833 and https://tapajyoti-bose.medium.com/7-killer-one-liners-in-javascript-33db6798f5bf | |
| // Remove any duplicates from an array of primitives. | |
| const unique = [...new Set(arr)] | |
| // Sleep in async functions. Use: await sleep(2000). | |
| const sleep = (ms) => (new Promise(resolve => setTimeout(resolve, ms))); | |
| // or | |
| const sleep = util.promisify(setTimeout); |