Idea | How We'd Detect It |
---|---|
Notify users when image not served from cache / CDN. | Header attributes on image asset spans. |
Suggest file formats such as WebP or AVIF. | Image asset span has an extension like .bmp. |
Notify of render blocking assets during pageload. | Look at structure of resource.script spans. |
Notify when page has >800 DOM elements. | On bad INP count DOM nodes. |
Warn on long animation frames correlated to INP. | Long animation frame API |
Slow database calls that correlate to a bad TTFB. | Correlate TTFB to a corresponding DB call |
Slow backend route calls that correspond a bad TTFB. | Correlate http.server spans to bad TTFB. |
Warn about images missing dimensions. |
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
Sentry.init({ | |
integrations: [ | |
Sentry.browserTracingIntegration({ | |
idleTimeout: 5_000 // default is 1_000 | |
}), | |
], | |
}); |
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
{ | |
"kind": "discovery#restDescription", | |
"discoveryVersion": "v1", | |
"resources": { | |
"projects": { | |
"resources": { | |
"locations": { | |
"resources": { | |
"registries": { | |
"resources": { |
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
from googleapiclient import discovery | |
api_scopes = ["https://www.googleapis.com/auth/cloud-platform"] | |
api_version = "v1" | |
discovery_api = "https://cloudiot.googleapis.com/$discovery/rest" | |
service_name = "cloudiot" | |
discovery_url = "{}?version={}".format(discovery_api, api_version) | |
client = discovery.build( | |
service_name, | |
api_version, |
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
syntax = "proto3"; | |
import "google/protobuf/timestamp.proto"; | |
message ChangeLog { | |
// Repository in form org/repo. | |
string repository = 1; | |
// When was an entry last added to changelog.json. | |
google.protobuf.Timestamp update_time = 5; | |
// Each CHANGELOG entry corresponds to a release on GitHub. |
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
import {parseArgs} from 'node:util'; | |
class ArgumentsMissingError extends Error { | |
constructor(values) { | |
let msg; | |
if (!values.variable1 && !values.variable2) { | |
msg = 'both variable1 and variable2 must be provided'; | |
} else { | |
msg = `${!values.variable1 ? 'variable1' : 'variable2'} must be provided`; | |
} |
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
on: | |
push: | |
branches: | |
- main | |
name: push-interest-changes | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 |
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
<testsuite name="Mocha Tests" tests="640" failures="0" errors="2" skipped="0" timestamp="Sat, 30 May 2020 00:28:04 GMT" time="7.529"> | |
<testcase classname="" name="should expose yargs-parser as Parser" time="0"/> | |
<testcase classname="Argsert" name="does not warn if optional argument is not provided" time="0.002"/> | |
<testcase classname="Argsert" name="warn if wrong type is provided for optional argument" time="0.002"/> | |
<testcase classname="Argsert" name="does not warn if optional argument is valid" time="0.001"/> | |
<testcase classname="Argsert" name="warns if required argument is not provided" time="0.002"/> | |
<testcase classname="Argsert" name="warns if required argument is of wrong type" time="0.001"/> | |
<testcase classname="Argsert" name="supports a combination of required and optional arguments" time="0.001"/> | |
<testcase classname="Argsert" name="warns if too many arguments are provided" time="0.001"/> | |
<testcase classname="Argsert" name="warn with argument position if wrong type is provided for argument" time="0.00 |
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
<testsuite name="Mocha Tests" tests="640" failures="0" errors="2" skipped="0" timestamp="Sat, 30 May 2020 00:28:04 GMT" time="7.529"> | |
<testcase classname="" name="should expose yargs-parser as Parser" time="0"/> | |
<testcase classname="Argsert" name="does not warn if optional argument is not provided" time="0.002"/> | |
<testcase classname="Argsert" name="warn if wrong type is provided for optional argument" time="0.002"/> | |
<testcase classname="Argsert" name="does not warn if optional argument is valid" time="0.001"/> | |
<testcase classname="Argsert" name="warns if required argument is not provided" time="0.002"/> | |
<testcase classname="Argsert" name="warns if required argument is of wrong type" time="0.001"/> | |
<testcase classname="Argsert" name="supports a combination of required and optional arguments" time="0.001"/> | |
<testcase classname="Argsert" name="warns if too many arguments are provided" time="0.001"/> | |
<testcase classname="Argsert" name="warn with argument position if wrong type is provided for argument" time="0.00 |
NewerOlder