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 php:fpm-alpine | |
| RUN apk add --no-cache --update icu-libs icu icu-dev | |
| RUN docker-php-ext-install intl pdo pdo_mysql |
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
| // Regex para validação de string no formato CNPJ | |
| export const regexCNPJ = /^\d{2}.\d{3}.\d{3}\/\d{4}-\d{2}$/ | |
| // Método de validação | |
| // Referência: https://pt.wikipedia.org/wiki/Cadastro_Nacional_da_Pessoa_Jur%C3%ADdica | |
| export function validCNPJ(value: string | number | number[] = '') { | |
| if (!value) return false | |
| // Aceita receber o valor como string, número ou array com todos os dígitos | |
| const isString = typeof value === 'string' |
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
| @Component({ | |
| selector: 'add-story-form', | |
| template: ` | |
| <div class="container"> | |
| <h1>New Story</h1> | |
| <form [formGroup]="newStory" | |
| (submit)="submit($event)" | |
| (success)="onSuccess()" | |
| (error)="onError($event)" | |
| connectForm="newStory"> |
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
| --- | |
| pipelines: | |
| cloudfront: | |
| - step: | |
| image: python:3.5.1 | |
| script: | |
| - pip install awscli | |
| # set up AWS access credentials incl. region | |
| - export AWS_ACCESS_KEY_ID="${AWS_ACCESS_KEY_ID}" |
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
| <template> | |
| <v-autocomplete | |
| v-model="select" | |
| :loading="loading" | |
| :items="items" | |
| :search-input.sync="search" | |
| no-filter | |
| hide-selected | |
| clearable | |
| return-object |
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
| # Este é o código de como ler emails do gmail | |
| # discutido no calango, ele foi escrito para rodar em | |
| # python 3 | |
| import email | |
| import imaplib | |
| EMAIL = '[email protected]' | |
| PASSWORD = '@Calango123' | |
| SERVER = 'imap.gmail.com' |
OlderNewer