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 run() { | |
let browser = await puppeteer.launch({ headless: false }); | |
let page = await browser.newPage(); | |
await page.setViewport({ width: 1920, height: 1080 }); | |
await page.setRequestInterception(true); | |
page.on('request', (req) => { | |
if(req.resourceType() == 'stylesheet' || req.resourceType() == 'font' || req.resourceType() == 'image'){ |
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
trait FunctorLike: Iterator { | |
type Next: Iterator; | |
fn fmap<F>(self, f: F) -> Self::Next | |
where F: FnMut(Self::Item) -> <<Self as FunctorLike>::Next as Iterator>::Item | |
+ 'static; | |
} | |
struct Count { | |
n: i32, |