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, { useState, useEffect } from 'react' | |
import PropTypes from 'prop-types' | |
import Table from '../Table' | |
import MobileTable from '../MobileTable' | |
import Button from '../Button' | |
import RegisterUser from '../../containers/Register/RegisterUser' | |
import { Container, WrapperAddUser } from './styles' | |
const useViewport = () => { |
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 number = 123456999.789; | |
let numberFormated = new Intl.NumberFormat('pt-BR', { style: 'decimal', minimumFractionDigits: 2, maximumFractionDigits :2}).format(number); | |
console.log(numberFormated.replace(/\./g, '').replace(',', '.')) |
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 number = 123456.789; | |
const formatter = new Intl.NumberFormat('pt-BR', { style: 'currency', currency: 'BRL' }); | |
https://developer.mozilla.org/pt-BR/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat |
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 | |
// If you choose to use ENV vars to define these values, give this IdP its own env var names | |
// so you can define different values for each IdP, all starting with 'SAML2_'.$this_idp_env_id | |
$this_idp_env_id = 'AMBEV'; | |
//This is variable is for simplesaml example only. | |
// For real IdP, you must set the url values in the 'idp' config to conform to the IdP's real urls. | |
$idp_host = env('SAML2_'.$this_idp_env_id.'_IDP_HOST', 'https://idp-saml.ambev.com.br/saml/login'); |
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
# rodar os comandos | |
pecl install xdebug | |
docker-php-ext-enable xdebug | |
#adicionar no arquivo a baixo | |
/usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini | |
# o seguinte, SEM SUBSTITUIR NADA | |
xdebug.remote_enable=on |
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
export function getToken() { | |
return new Promise((resolve) => resolve('token')) | |
} |
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 | |
use ErikFig\CnabWriter\Entities\Header; | |
use ErikFig\CnabWriter\Entities\Rem\Boleto\BatchTrailer; | |
use ErikFig\CnabWriter\Entities\Rem\Boleto\Header as BoletoHeader; | |
use ErikFig\CnabWriter\Entities\Rem\Boleto\SegmentJ; | |
use ErikFig\CnabWriter\Entities\Rem\Boleto\SegmentJ52; | |
use ErikFig\CnabWriter\Entities\Trailer; | |
include __DIR__ . '/vendor/autoload.php'; |
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 | |
$data = scandir(__DIR__); | |
foreach ($data as $sub) { | |
if (is_dir(__DIR__ . DIRECTORY_SEPARATOR . $sub)) { | |
echo $sub . ' is a dir'; | |
if (preg_match('/[0-9]{3}/', $sub)) { | |
echo ' and is a bank code'; |
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
pipelines: | |
branches: | |
master: | |
- step: | |
name: "Deploy" | |
script: | |
- apt-get update -y | |
- apt-get install -y ssh | |
- echo "Deploying to environment" | |
- ssh -i ~/.ssh/config usuario@servidor "git --git-dir=/diretorio/do/repositorio/git/bare fetch origin master:master; GIT_WORK_TREE=/aonde/os/arquivos/vao/ficar/no/servidor/ git --git-dir=/diretorio/do/repositorio/git/bare checkout master -f; cd /aonde/os/arquivos/vao/ficar/no/servidor/; composer install; php artisan migrate; npm run prod" |
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 | |
/** | |
* Created by PhpStorm. | |
* User: honorato | |
* Date: 09/08/19 | |
* Time: 08:31 | |
*/ | |
namespace Modules\ContasAPagar\Http\Requests; |