What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-09-26 08:10:05
ejemplo async await javascript
// Async/Await const asyncGreeting = async () => 'Greetings'; // Promises const promiseGreeting = () => new Promise(((resolve) => { resolve('Greetings'); })); asyncGreeting().then(result => console.log(result)); promiseGreeting().then(result... Add solution -
Javascript 2021-09-22 17:54:02
javascript node await .click
(async () => { const browser = await puppeteer.launch({headless: true}) const page = await browser.newPage() await page.goto('https://github.com/login') await page.type('#login_field', process.env.GITHUB_USER) await page.type('#password', process.... Add solution -
Javascript 2021-09-22 17:25:03
fill form using Puppeteer
const puppeteer = require('puppeteer'); (async () => { const browser = await puppeteer.launch(); const page = await browser.newPage(); await page.goto('https://www.google.com/admin'); await page.type('#username', '[email protected]'); await ... Add solution -
Javascript 2021-09-22 13:25:02
express example using puppeteer
require('dotenv/config') const puppeteer = require('puppeteer') (async () => { try { const browser = await puppeteer.launch({ headless: false, args: [ '--allow-external-pages', '--allow-third-party-modules', '--data-reduction-prox... Add solution -
Other 2021-09-17 03:45:02
aws amplify cli set environment variable
const aws = require('aws-sdk'); exports.handler = async () => { const { Parameters } = await (new aws.SSM()) .getParameters({ Names: ["SECRET_TOKEN"].map(secretName => process.env[secretName]), WithDecryption: true, ... Add solution -
Other 2021-09-09 23:41:03
react-native-print example
// Print HTML as a Document from React Native App for Android and iOS // https://aboutreact.com/react-native-print-html/ // Import React import React, {useState} from 'react'; // Import required components import { SafeAreaView, StyleSheet, Platfor... Add solution