{
"idContrato": 123,
"transacoes": [
{
"cartao": {
"enderecoCobranca": {
"rua": "123 Main St",
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
| #!/bin/bash | |
| # Define the UDEV rule file path | |
| RULE_FILE="/etc/udev/rules.d/72-ds4tm.rules" | |
| # Define the content of the UDEV rule | |
| # This rule matches the touchpad device by name for both USB and Bluetooth connections | |
| # and tells libinput to ignore it as a primary input device (mouse). | |
| RULE_CONTENT=' | |
| # Disable PS4 DualShock 4 (DS4) touchpad acting as a mouse |
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
| import { cpf } from 'cpf-cnpj-validator'; | |
| const TAMANHO_MAXIMO = 14; | |
| export const formatar = (valor: string) => { | |
| return valor | |
| .replace(/\D/g, '') | |
| .replace(/(\d{3})(\d)/, '$1.$2') | |
| .replace(/(\d{3})(\d)/, '$1.$2') | |
| .replace(/(\d{3})(\d{1,2})/, '$1-$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
| DROP TRIGGER IF EXISTS sakila.bf_insert_actor; | |
| DELIMITER $$ | |
| CREATE TRIGGER bf_insert_actor | |
| BEFORE INSERT ON sakila.actor | |
| FOR EACH ROW | |
| BEGIN | |
| IF NEW.actor_id IS NOT NULL THEN | |
| SET NEW.actor_id = null; |
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
| /* | |
| * - significa nome de todas colunas; | |
| ; - Não esquecer do ponto e vírgula | |
| */ | |
| -- Query padrão | |
| SELECT (coluna_nome) FROM nome_database.nome_tabela; | |
| -- Query do valor de uma operação ou valor fixo | |
| SELECT valor AS nome_coluna, valor2 AS nome_coluna_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
| version: '3' | |
| services: | |
| frontend: | |
| build: frontend/ | |
| restart: always | |
| ports: | |
| - 3000:3000 | |
| depends_on: | |
| - backend |