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 usePrevious = (value: any, initialValue: any) => { | |
const ref = useRef(initialValue); | |
useEffect(() => { | |
ref.current = value; | |
}); | |
return ref.current; | |
}; | |
export const useEffectDebugger = (effectHook: any, dependencies: any, dependencyNames = []) => { | |
const previousDeps = usePrevious(dependencies, []); |
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 { Canvas } from "@react-three/fiber"; | |
import { Box } from "./components/Box"; | |
import "./styles.css"; | |
import React from "react"; | |
export const LightSource = () => { | |
return ( | |
<> | |
<ambientLight intensity={0.1} /> |
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 { | |
AnimatePresence, | |
m, | |
LazyMotion, | |
domAnimation, | |
domMax | |
} from "framer-motion"; | |
import type { CSSProperties } from "react"; | |
import { Link, Route, Routes, useLocation } from "react-router-dom"; | |
import "./styles.css"; |
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"); | |
const pages = require("./webPages.json"); | |
async function takeMultipleScreenshots() { | |
try { | |
const browser = await puppeteer.launch(); | |
const page = await browser.newPage(); | |
for (const { id, name, url } of pages) { |
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"); | |
const crevulus = {}; | |
async function getProfile(username) { | |
const browser = await puppeteer.launch({ | |
// headless: false, | |
defaultViewport: null, | |
}); |
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 getImages(searchTerm) { | |
const browser = await puppeteer.launch({ | |
// headless: false, | |
defaultViewport: null, | |
}); | |
const page = await browser.newPage(); |