Legend:
- ✏️ method changes
this
. - 🔒 method does not change
this
.
Array<T>.prototype.*
:
concat(...items: Array: T[]
🔒 ES3
https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts https://mirror1.malwaredomains.com/files/justdomains http://sysctl.org/cameleon/hosts https://zeustracker.abuse.ch/blocklist.php?download=domainblocklist https://s3.amazonaws.com/lists.disconnect.me/simple_tracking.txt https://s3.amazonaws.com/lists.disconnect.me/simple_ad.txt https://hosts-file.net/ad_servers.txt https://v.firebog.net/hosts/AdguardDNS.txt https://adaway.org/hosts.txt https://v.firebog.net/hosts/Easyprivacy.txt https://v.firebog.net/hosts/Prigent-Ads.txt https://zerodot1.gitlab.io/CoinBlockerLists/hosts https://s3.amazonaws.com/lists.disconnect.me/simple_malvertising.txt https://raw.githubusercontent.com/ScottHelme/revocation-endpoints/master/ocsp.txt https://raw.githubusercontent.com/ScottHelme/revocation-endpoints/master/crl.txt https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews/hosts https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling/hosts https://www.malwaredomainlist.c |
// Modify your settings.json to add these. Customize further how you prefer. | |
{ | |
"workbench.editor.highlightModifiedTabs": true, | |
"workbench.editor.tabCloseButton": "off", | |
"workbench.colorCustomizations": { | |
"editor.lineHighlightBackground": "#ffffff06", | |
"editor.foreground": "#acb3db", | |
"selection.background": "#89DDFF", | |
"progressBar.background": "#89DDFF", | |
"textLink.foreground": "#89DDFF", |
import React, { useState, useEffect, useContext } from "react"; | |
import { Checkout } from "shopify-storefront-api-typings"; | |
import Client from "shopify-buy"; | |
const SHOPIFY_CHECKOUT_STORAGE_KEY = "shopify_checkout_id"; | |
const storefrontAccessToken = process.env.GASTBY_SHOPIFY_ACCESS_TOKEN as string; | |
const client = Client.buildClient({ | |
storefrontAccessToken, |
const sanityClient = require('@sanity/client'); | |
const { | |
SANITY_API_TOKEN, | |
SANITY_PROJECT_ID, | |
SANITY_DATASET, | |
} = process.env; | |
const client = sanityClient({ | |
projectId: SANITY_PROJECT_ID, |
import PropTypes from 'prop-types'; | |
type Omit<T, K> = Pick<T, Exclude<keyof T, K>>; | |
type Defined<T> = T extends undefined ? never : T; | |
/** | |
* Get the type that represents the props with the defaultProps included. | |
* | |
* Alternatively, we could have done something like this: |
// Example useStaticQuery | |
// this is src/components/HeaderLogo.tsx | |
import { graphql, Link, useStaticQuery } from 'gatsby' | |
import React from 'react' | |
import { HeaderLogoQuery } from '../types/__generated__/HeaderLogoQuery' | |
const query = graphql` | |
query HeaderLogoQuery { | |
contentfulCompanyMetadata { |
/** | |
* Copyright 2018 Google Inc. All rights reserved. | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
/** | |
* @author ebidel@ (Eric Bidelman) | |
* License Apache-2.0 | |
* | |
* Shows how to use Puppeeteer's code coverage API to measure CSS/JS coverage across | |
* different points of time during loading. Great for determining if a lazy loading strategy | |
* is paying off or working correctly. | |
* | |
* Install: | |
* npm i puppeteer chalk cli-table |
// see for screenshot: | |
// https://twitter.com/paul_irish/status/829090506084749312 | |
const http = require('http'); | |
function requestHandler(request, response) { | |
const headers = { | |
'Server-Timing': ` | |
sql-1;desc="MySQL lookup Server";dur=100, | |
sql-2;dur=900;desc="MySQL shard Server #1", |