Proxy (A-Z) | Methods | Status Code | Override Headers | Exposed Headers | Follow Redirect | Timeout | Size Limit | Rate Limit |
---|---|---|---|---|---|---|---|---|
allorigins | ✅ All | ❌ (Always 200) | ❌ | ❌ | ✅ | ❔ | ❔ | 20/min |
cloudflare-cors-anywhere | ✅ All | ✅ Mirror | ✅ | ✅ | ❌ | ❔ | ❔ | ❔ |
codetabs | ❌ (only GET) | ❌ (Always 200) | ❌ | ❌ | ✅ | ❔ | 625KB | 5/sec |
cors-anywhere | ✅ All | ✅ Mirror | ❔ | ✅ | ✅ (max. 5) | ❔ | ❔ | 50/3 mins |
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
// Types for the result object with discriminated union | |
type Success<T> = { | |
data: T; | |
error: null; | |
}; | |
type Failure<E> = { | |
data: null; | |
error: E; | |
}; |
Originally tweeted by Adam Wathan: https://twitter.com/adamwathan/status/1217864323466432516?lang=en
Codepen: https://codepen.io/adamwathan/pen/bGNxMpz?editors=1000
<div class="bg-gray-100 min-h-screen antialiased text-gray-900 p-6">
<div class="max-w-sm mx-auto">
<div class="">
Only run tests against files which have been changed (--passWithNoTests
used in case no tested files have changed)
jest --onlyChanged --passWithNoTests
- Remove desktop background (if your company enforces one)
- If you search in the start menu for Ease of Access, you'll see a result for Ease of Access brightness setting.
- Once that settings page has been opened, if you scroll down to the bottom, you’ll see an option to Show desktop background image. If you toggle this to off, it will set the background to the default black.
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
// cypress/support/hooks.js | |
// Cypress does not support listening to the fetch method | |
// Therefore, as a workaround we polyfill `fetch` with traditional XHR which | |
// are supported. See: https://github.com/cypress-io/cypress/issues/687 | |
enableFetchWorkaround() | |
// private helpers | |
function enableFetchWorkaround() { | |
let polyfill |
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
Get-ChildItem -Path "." -Include "node_modules" -Recurse -Directory | Remove-Item -Recurse -Force |
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
function makeIndex() { | |
return Math.random().toString(12).substring(2, 12); | |
} | |
function Awesome() { | |
Object.defineProperty(this, 'index', { | |
writable: false, | |
configurable: false, | |
value: makeIndex() | |
}); |
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
/// Function to get next map item | |
/// returns next map item or fallback value if map, key or next item does not exist | |
/// Github Repo: https://github.com/elcheio/sass-map-get-next-prev | |
/// Node Module: https://www.npmjs.com/package/sass-map-get-next-prev | |
/// | |
/// @author Simon Koch <[email protected]> | |
/// | |
/// Licensed under the MIT license. | |
/// | |
/// @access public |
NewerOlder