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
<?php | |
function calcularAliqPorFaixa($numero, array $faixasDeAliquotas) { | |
$calcPorcetagem = function($numero, $alvo) { | |
return ($numero * $alvo) / 100; | |
}; | |
$calcAliq = function(float $aliquota, float $alvoUm, ?float $alvoDois = 0) use ($numero, $calcPorcetagem) { | |
if (($numero <= $alvoUm || $numero >= $alvoUm) && $alvoDois <= 0) { | |
return $calcPorcetagem($aliquota, $alvoUm); | |
} |
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 api from 'Services/http/api.js'; | |
const clientesApi = new api('/api/pessoas'); | |
export default { | |
listarTodos () { | |
return clientesApi | |
.find() | |
.equal("id", 2) | |
.execute() |
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> | |
<form-container ref="SignInForm" :schema="schema"> | |
<form class="SignInForm" slot-scope="{ errors, fields }"> | |
<v-entry-text | |
type="text" | |
class="entry" | |
label="Código AASP" | |
:error="errors.code" | |
:value="fields.code" | |
@input="fields.code = $event.replace(/\D/g, '')" |
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
<?php | |
class DockerClient { | |
/** @param resource */ | |
private $curlClient; | |
/** @param string */ | |
private $socketPath; |
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
[ | |
{ | |
"value": "001", | |
"label": "Banco do Brasil S.A." | |
}, | |
{ | |
"value": "003", | |
"label": "Banco da Amazônia S.A." | |
}, | |
{ |
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> | |
<div> | |
<button @click="increment">Increment</button> | |
</div> | |
</template> | |
<script> | |
import { mapActions } from 'vuex' | |
export default{ | |
methods: { |
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
# delete local tag '12345' | |
git tag -d 12345 | |
# delete remote tag '12345' (eg, GitHub version too) | |
git push origin :refs/tags/12345 | |
# alternative approach | |
git push --delete origin tagName | |
git tag -d tagName |