Skip to content

Instantly share code, notes, and snippets.

View anthonykoch's full-sized avatar
🎈
It's complicated

Anthony Koch anthonykoch

🎈
It's complicated
View GitHub Profile
@anthonykoch
anthonykoch / lazyload.js
Last active April 8, 2020 22:37
lazyload.js
const cheerio = require('cheerio');
const genid = require('uuid');
const { URL } = require('url');
const path = require('path');
const compose = (exports.compose = (...functions) => args =>
functions.reduce((arg, fn) => fn(arg), args));
const dataifyAttributes = ($el, attributes) => {
'use strict'
const axios = require('axios')
const url = require('url')
const delay = (time) => new Promise((resolve) => setTimeout(resolve, time))
!async function main() {
const baseUrl = 'https://letsrevolutionizetesting.com/challenge.json'