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
| export const isValidEmail = (email: string): boolean => { | |
| const match = String(email) | |
| .toLowerCase() | |
| .match( | |
| /^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/ | |
| ); |
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
| { | |
| // Place your snippets for typescript here. Each snippet is defined under a snippet name and has a prefix, body and | |
| // description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are: | |
| // $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the | |
| // same ids are connected. | |
| // Example: | |
| // "Print to console": { | |
| // "prefix": "log", | |
| // "body": [ | |
| // "console.log('$1');", |
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
| if(!document.getElementById('optimize-service-card')) { | |
| setTimeout(() => { | |
| if(!document.getElementById('optimize-service-card')) { | |
| const script = document.createElement('script') | |
| script.id = 'optimize-service-card' | |
| script.textContent = 'const getAllCards=()=>document.getElementsByClassName("service-section")[0].getElementsByClassName("card-offer"),applyStylesToServiceCard=(e=document)=>{e.getElementsByClassName("card-image")[0]?.remove();const t=e.getElementsByClassName("card-content")[0];let s=e.getElementsByClassName("card-notice")[0],a=e.getElementsByClassName("card-border-top")[0],l=e.getElementsByClassName("card-button")[0],n=e.getElementsByClassName("badge-list")[0].firstChild,r=e.getElementsByClassName("badge-list")[0].lastChild;e.insertBefore(r,t,s,e.firstChild),n&&(n.style["background-color"]="",n.style.color="",e.appendChild(n)),a||(a=document.createElement("div"),e.insertBefore(a,e.firstChild),a.classList.add("card-border-top")),!s&&r&&((s=document.createElement("div")).clas |
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
| # Fuente: https://github.com/vercel/next.js/blob/canary/examples/with-docker/README.md | |
| # Install dependencies only when needed | |
| FROM node:16-alpine AS deps | |
| # Check https://github.com/nodejs/docker-node/tree/b4117f9333da4138b03a546ec926ef50a31506c3#nodealpine to understand why libc6-compat might be needed. | |
| RUN apk add --no-cache libc6-compat | |
| WORKDIR /app | |
| COPY package.json yarn.lock ./ | |
| RUN yarn install --frozen-lockfile |
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
| function parseJwt (token) { | |
| var base64Url = token.split('.')[1]; | |
| var base64 = base64Url.replace('-', '+').replace('_', '/'); | |
| return JSON.parse(window.atob(base64)); | |
| }; |
NewerOlder
