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"); | |
| const pages = require("./webPages.json"); | |
| async function takeMultipleScreenshots() { | |
| try { | |
| const browser = await puppeteer.launch(); | |
| const page = await browser.newPage(); | |
| for (const { id, name, url } of pages) { |
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
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <style> | |
| body { | |
| margin: 0; | |
| padding: 0; | |
| font-family: 'PT Sans', sans-serif; | |
| } |
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 app = require('express')() | |
| const getDurationInMilliseconds = (start) => { | |
| const NS_PER_SEC = 1e9 | |
| const NS_TO_MS = 1e6 | |
| const diff = process.hrtime(start) | |
| return (diff[0] * NS_PER_SEC + diff[1]) / NS_TO_MS | |
| } |
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
| /* CHAT STYLES */ | |
| * { | |
| font-family: Avenir, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, | |
| Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, | |
| Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji; | |
| letter-spacing: 0.5px; | |
| } | |
| .ce-chat-list { | |
| background-color: rgb(240, 240, 240) !important; |
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
| <CORSConfiguration> | |
| <CORSRule> | |
| <AllowedOrigin>*</AllowedOrigin> | |
| <AllowedMethod>GET</AllowedMethod> | |
| </CORSRule> | |
| </CORSConfiguration> |
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
| { | |
| "Version":"2012-10-17", | |
| "Statement":[ | |
| { | |
| "Sid":"PublicRead", | |
| "Effect":"Allow", | |
| "Principal": "*", | |
| "Action":["s3:GetObject","s3:GetObjectVersion"], | |
| "Resource":["arn:aws:s3:::YOUR_BUCKET_NAME_GOES_HERE/*"] | |
| } |
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
| === General Commands | |
| help # show this usage | |
| version # show the gem version | |
| list # list your apps | |
| create [<name>] # create a new app | |
| keys # show your user's public keys | |
| keys:add [<path to keyfile>] # add a public key |