What do you want to save?
Add Code snippet
New code examples
-
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 -
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 -
Javascript 2021-10-11 03:02:07
Web Scraping 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=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-10 12:44:10
cypress read xml file
describe('Sitemap', () => { // initialize the url array let urls = [] // be sure to get the url list before executing any tests before(async () => { // getch the sitemap content const response = await cy.request('sitemap.xml') ... Add solution -
Javascript 2021-10-08 16:10:06
Top-level 'await' expressions are only allowed when the 'module' option is set to 'esnext' or 'system', and the 'target' option is set to 'es2017' or higher.
(async () => { try { var text = await main(); console.log(text); } catch (e) { // Deal with the fact the chain failed } })(); Add solution
Best helpers
Ranking is empty