This file has been truncated, but you can view the full file.
This file contains 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
{ | |
"captchaResult": "CAPTCHA_NOT_NEEDED", | |
"kind": "pagespeedonline#result", | |
"id": "https://www.siemens-healthineers.com/en-us/ultrasound", | |
"loadingExperience": { | |
"id": "https://www.siemens-healthineers.com", | |
"metrics": { | |
"CUMULATIVE_LAYOUT_SHIFT_SCORE": { | |
"percentile": 41, | |
"distributions": [ |
This file contains 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 unblockCSS = () => ({ | |
element: (el) => { | |
el.removeAttribute('media'); | |
el.setAttribute('rel', 'preload'); | |
el.setAttribute('as', 'style'); | |
el.setAttribute('onload', "this.onload=null;this.rel='stylesheet';this.media='all'"); | |
el.after(` | |
<noscript><link rel="stylesheet" href="${el.getAttribute("href")}"></noscript> | |
`, { html: true }); }}); |
This file contains 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
addEventListener("fetch", (event) => { | |
event.respondWith( | |
handleRequest(event.request).catch( | |
(err) => new Response(err.stack, { status: 500 }) | |
) | |
); | |
}); | |
const addPreloadAfter = (href) => ({ | |
element: (el) => { |
This file contains 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
addEventListener("fetch", (event) => { | |
event.respondWith( | |
handleRequest(event.request).catch( | |
(err) => new Response(err.stack, { status: 500 }) | |
) | |
); | |
}); | |
const addPreloadBefore = (href) => ({ | |
element: (el) => { |
This file contains 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
{ | |
"userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.77 Safari/537.36", | |
"environment": { | |
"networkUserAgent": "Mozilla/5.0 (Linux; Android 7.0; Moto G (4)) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4420.0 Mobile Safari/537.36 Chrome-Lighthouse", | |
"hostUserAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.77 Safari/537.36", | |
"benchmarkIndex": 1366, | |
"credits": { | |
"axe-core": "4.1.2" | |
} | |
}, |
This file contains 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
// React App.js | |
import React from 'react'; | |
import { Route, Switch, NavLink } from 'react-router-dom'; | |
import Home from './Home'; | |
import Posts from './Posts'; | |
export default props => { | |
return ( | |
<div> | |
<ul> |
This file contains 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
((arg) => { | |
const USD = new Intl.NumberFormat('en-US', { | |
style: 'currency', | |
currency: 'USD', | |
minimumFractionDigits: 2 }) | |
if (isNaN(Number(arg)) || arg < 0) { return; } //fail test the initial value | |
let amt = Number(arg); | |
function fee (num) { return num * .029 + .3; } | |
do { amt += .01; } while (amt - fee(amt) < arg); | |
console.log(` |
This file contains 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 {StringStream} = require('scramjet'); | |
const request = require('request'); | |
// requires two arguments (county and state) which must be wrapped in quotes if a phrase i.e. 'new york city' 'new york' | |
let counter = 0; | |
let death = 0; | |
let cases = 0; | |
let args = process.argv; | |
do { | |
args.shift(); |
This file contains 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> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0"> | |
<meta http-equiv="x-ua-compatible" content="ie=edge"> | |
<title>US Covid-19</title> | |
<style> ul { list-style: none; } ul li { margin: 0px 0px 5px 0px; } </style> | |
<script> | |
const getCovidStats = async() => { |
This file contains 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> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0"> | |
<meta http-equiv="x-ua-compatible" content="ie=edge"> | |
<title>US Covid-19</title> | |
<script> | |
const getCovidStats = async() => { | |
try { |
NewerOlder