This file contains 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 puppeteer from "puppeteer"; | |
function clickLink(page, selector) { | |
return Promise.all([page.click(selector), page.waitForNavigation()]); | |
} | |
const USERNAME = "[email protected]"; | |
const PASSWORD = "************"; | |
const PAGES = 2; |
This file contains 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
{ | |
"name": "OnShape", | |
"start_url": "https://cad.onshape.com/documents/", | |
"icons": [ | |
{ | |
"src": "https://cad.onshape.com/favicon.png", | |
"sizes": "144x144", | |
"type": "image/png" | |
} | |
], |
This file contains 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 { DependencyList, useMemo, useRef } from 'react' | |
import * as R from 'remeda' | |
/** | |
* `useDeepMemo` will only recompute the memoized value when one of the | |
* `dependencies` has changed by value. | |
* | |
* Warning: `useDeepMemo` should not be used with dependencies that | |
* are all primitive values. Use `React.useMemo` instead. |
OlderNewer