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 instream = fs.createReadStream( | |
| path.join(__dirname, `../reports/trendData`, `${type}.json`) | |
| ); | |
| const outstream = new stream(); | |
| const rl = readline.createInterface(instream, outstream); | |
| const labels = []; | |
| rl.on("line", function(line) { | |
| labels.push(line.slice(-19, -5)); | |
| }); |
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
| // await execa.shell( | |
| // `aws s3 ls way-accessibility/reports/${type}/hp --recursive | sort | tail -n 10 | awk '{ print $4}' >./reports/trendData/label/${type}.txt` | |
| // ); |
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
| Date.prototype.customFormat = function(formatString) { | |
| var YYYY, | |
| YY, | |
| MMMM, | |
| MMM, | |
| MM, | |
| M, | |
| DDDD, | |
| DDD, | |
| DD, |
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 lighthouse = require("lighthouse"); | |
| const chromeLauncher = require("chrome-launcher"); | |
| function launchChromeAndRunLighthouse(type, page, timestamp, res) { | |
| const relativePath = `reports/${type}/${page}/${timestamp}.json`; | |
| let opts = { | |
| chromeFlags: ["--no-sandbox", "--disable-gpu", "--headless"], | |
| extraHeaders: { Cookie: "split_tcv=100" } | |
| }; | |
| let lighthouse_config_accessibilityOnly = { |
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
| package com.JJ; | |
| import java.util.Stack; | |
| public class Main { | |
| static Stack<Integer> nums; | |
| public static void main(String[] args) { | |
| binary(11); | |
| while(!nums.isEmpty()){ | |
| System.out.printf("%d",nums.peek()); |
OlderNewer