What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-10-20 15:25:04
save file as get dimensions puppeteer js
const puppeteer = require('puppeteer'); (async () => { const browser = await puppeteer.launch(); const page = await browser.newPage(); await page.goto('https://example.com'); // Get the "viewport" of the page, as reported by the pag... Add solution -
C# 2021-10-20 11:11:09
task runners in c#
The code below shows the simple way of implementing a task runner in your C# code static void Main(string[] args) { Test(); Console.WriteLine("Loading..."); Console.ReadLine(); } static async Task Test() { var t1 = Task.Run(async () =&... Add solution -
Other 2021-10-19 19:51:09
how to get elevation with google elevation api
const [currentLatitude, setCurrentLatitude] = useState(0); const [currentLongitude, setCurrentLongitude] = useState(0); const [currentElevation, setCurrentElevation] = useState(0); useEffect( async () => { try { const res = await fetch(`ht... Add solution -
Javascript 2021-10-19 13:04:06
asyncstorage.getallkeys
importData = async () => { try { const keys = await AsyncStorage.getAllKeys(); const result = await AsyncStorage.multiGet(keys); return result.map(req => JSON.parse(req)).forEach(console.log); } catch (error) { console.error(err... Add solution -
Javascript 2021-10-14 21:21:03
PDF.js Tutorial for beginners
/* This code comes from Vincent Lab And it has a video version linked here: https://www.youtube.com/watch?v=JZHyvG93G2I */ const url = "/dummy.pdf"; (async function () { // Specified the workerSrc property pdfjsLib.GlobalWorke... Add solution -
Javascript 2021-10-14 13:18:07
web scraping node js puppeteer
/* This code comes from Vincent Lab And it has a video version linked here: https://www.youtube.com/watch?v=GAvpZuVzeA8 */ // AQI Air Pollution Level Health Implications Cautionary Statement (for PM2.5) // 0 - 50 Good Air quality is considered sa... Add solution -
Javascript 2021-10-14 12:32:11
Scraping Reddit Programmer Humor with Node.js using Puppeteer
/* This code comes from Vincent Lab And it has a video version linked here: https://www.youtube.com/watch?v=Zb--639XePw */ // Import dependencies const puppeteer = require("puppeteer"); const fs = require("fs"); (async () =&g... Add solution -
Javascript 2021-10-13 23:13:07
async await iife
(async () => { // code goes here })(); Add solution