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
import React from 'react'; | |
import PropTypes from 'prop-types'; | |
import Head from 'next-server/head'; | |
import useElasticApm from '@@/Commons/hooks/useElasticApm'; | |
const statusCodes = { | |
400: 'Bad Request', | |
404: 'This page could not be found', | |
405: 'Method Not Allowed', |
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
import { css, keyframes } from 'styled-components'; | |
import colors from './colors'; | |
const slideUpKeyframe = keyframes` | |
0% { | |
opacity: 0; | |
transform: translateY(30px); | |
} | |
100% { | |
opacity: 1; |
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
node { | |
try { | |
def PROJECT = "project-name" | |
def REPO_GIT = "project.git" | |
def BRANCH_NAME = "ti" | |
def IMAGE_VERSION = "$BUILD_NUMBER" | |
def ENV_DOMAIN = "k8s-ti-company" | |
def ECR_URL = "12345664.dkr.ecr.sa-east-1.amazonaws.com/$PROJECT" |
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
git config --global alias.st "status -s -b" | |
git config --global alias.di "diff" | |
git config --global alias.co "checkout" | |
git config --global alias.ci "commit" | |
git config --global alias.br "branch" | |
git config --global alias.l "log --online --decorate --graph" | |
git config --global alias.fixup "commit --amend -C HEAD" | |
git config --global alias.timeline "log --graph --branches --pretty=online --decorate" | |
git config --global alias.untracked-files "ls-files -o --exclude-standard" | |
git config --global alias.ignored-files "ls-files --others -i --exclude-standard" |
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
const Hapi = require("hapi"); | |
const JWT = require("jsonwebtoken"); | |
// our "users database" | |
const people = { | |
1: { | |
id: 1, | |
name: "Jen Jones" | |
} | |
}; |
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
<?php | |
/** | |
* Classe que contem os métodos que iram | |
* filtrar as entradas enviadas via GET e POST | |
* | |
* @filesource | |
* @author Pedro Elsner <pedro.elsner@gmail.com> | |
* @license http://creativecommons.org/licenses/by/3.0/br/ Creative Commons 3.0 | |
* @abstract | |
* @version 1.0 |
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
// jQuery Masked Input | |
$('#celular').mask("(99) 9999-9999?9").ready(function(event) { | |
var target, phone, element; | |
target = (event.currentTarget) ? event.currentTarget : event.srcElement; | |
phone = target.value.replace(/\D/g, ''); | |
element = $(target); | |
element.unmask(); | |
if(phone.length > 10) { | |
element.mask("(99) 99999-999?9"); | |
} else { |
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
// Carrega a tabela | |
Table: | |
load * inline [ | |
ID, ID2, UF, CABELO, OLHOS | |
1, 101, 'SP', 'PRETO', 'VERDE' | |
2, 102, 'RJ', 'CASTANHO', 'CASTANHO' | |
3, 103, 'SP', 'CASTANHO', 'AZUL' | |
4, 101, null, 'LOIRO', 'VERDE' | |
5, 104, 'RO', 'PRETO', 'VERDE' |
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
=Only({$<VALOR_RECEBIDO={'0,00'}> CLIENTE} |
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
set smartindent | |
set tabstop=4 | |
set shiftwidth=4 | |
set expandtab |
NewerOlder