Run this command to remember your password:
git config --global credential.helper 'cache --timeout 28800'Above command will tell git to cache your password for 8 hours.
| function hexToHSL(hex) { | |
| var result = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(hex); | |
| r = parseInt(result[1], 16); | |
| g = parseInt(result[2], 16); | |
| b = parseInt(result[3], 16); | |
| r /= 255, g /= 255, b /= 255; | |
| var max = Math.max(r, g, b), min = Math.min(r, g, b); | |
| var h, s, l = (max + min) / 2; | |
| if(max == min){ | |
| h = s = 0; // achromatic |
A Pen by lilgreenland on CodePen.
| 100+ different js counter apps... |
| cy.visit('/404') | |
| //=> Test fails | |
| cy.visit('/404', {failOnStatusCode: false}) | |
| //=> Test passes but does not test the HTTP code was 404 | |
| cy.request({url: '/404', failOnStatusCode: false}).its('status').should('equal', 404) | |
| cy.visit('/404', {failOnStatusCode: false}) | |
| //=> Test passes, tests that the HTTP code was 404, and tests page was visited |
| import { build, files, version } from '$service-worker'; | |
| // https://github.com/microsoft/TypeScript/issues/11781 - this is needed for TS and ESLint | |
| /// env serviceworker | |
| const globalThis = /** @type {unknown} */ (self); | |
| /// <reference no-default-lib="true"/> | |
| /// <reference lib="es2020" /> | |
| /// <reference lib="WebWorker" /> | |
| const sw = /** @type {ServiceWorkerGlobalScope & typeof globalThis} */ (globalThis); |