- VirtualBox 6.1.40. download
- Homebrew. documentação
- ProperTree. download
- macOS Ventura
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 express from 'express' | |
| import http from 'http' | |
| import https from 'https' | |
| const app = express() | |
| const PORT = 12720 | |
| const setHeaders = (headers) => { | |
| const headersToPass = { | |
| 'Content-Type': headers['content-type'] ?? 'application/octet-stream', |
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 puppeteer = require("puppeteer"); | |
| async function waitFor(time) { | |
| return new Promise((r) => setTimeout(r, Number(time))); | |
| } | |
| (async () => { | |
| const browser = await puppeteer.launch({ | |
| headless: false, | |
| }); |
Find elements using css selector with expressions:
Example: <input type="text" placeholder="Search..." class="form-control">
How to find this element:
-
By the start string of placeholder
$('input[placeholder^=Search]') // returns true
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
| [alias] | |
| s = !git status -s | |
| c = !git add --all && git commit -m | |
| l = !git log --pretty=format:'%C(blue)%h%C(red)%d %C(white)%s - %C(cyan)%cn, %C(green)%cr' |