- Modificado (modified);
- Preparado (staged/index)
- Consolidado (comitted);
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
| function calcularValorHora() { | |
| valorHora.qtdePorMes = parseFloat(formatarValorParaDecimal($("#field-valor-hora-1").val())), valorHora.horasPorDia = parseFloat($("#field-valor-hora-2").val()), valorHora.diasPorSemana = parseFloat($("#field-valor-hora-3").val()), valorHora.semanasPorAno = parseFloat($("#field-valor-hora-4").val()); | |
| var a = valorHora.horasPorDia * valorHora.diasPorSemana, | |
| b = a * valorHora.semanasPorAno, | |
| c = 12 * valorHora.qtdePorMes / (52.1 * a - b); | |
| c += 20 * c / 100, c = parseFloat(c).toFixed(2); | |
| var d = !isNaN(c) && isFinite(c) ? "R$ " + Math.ceil(c) + ",00" : "R$ 0,00"; | |
| $("#valorHoraFinal").text(d), $("#field-valor-projeto-1").val(Math.ceil(c) + ".00").priceFormat({ | |
| prefix: "", | |
| centsSeparator: ",", |
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
| private String formataDescricao(String descricao){ | |
| String retorno = ""; | |
| if (descricao.contains("-")){ | |
| // Pega o indice. | |
| int pos = descricao.indexOf("-"); | |
| // Substring iniciando em 0 até posição do caracter "-". | |
| retorno = descricao.substring(0, pos); | |
| } else if (descricao!= null){ | |
| retorno = descricao; | |
| } |
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
| package br.com.andersonmatte.projeto.filter; | |
| import java.io.IOException; | |
| import javax.servlet.Filter; | |
| import javax.servlet.FilterChain; | |
| import javax.servlet.FilterConfig; | |
| import javax.servlet.ServletException; | |
| import javax.servlet.ServletRequest; | |
| import javax.servlet.ServletResponse; |
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
| export class Functions { | |
| public static formataCpf() { | |
| var cpfFormatado = 01477569036; | |
| console.log("CPF formatado: " + cpfFormatado.replace(/(\d{3})(\d{3})(\d{3})(\d{2})/g, "\$1.\$2.\$3\-\$4")); | |
| } | |
| } |
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
| package com.example.demo; | |
| import java.io.IOException; | |
| import java.io.InputStream; | |
| import java.util.Properties; | |
| public class Teste { | |
| public static void main(String[] args) throws IOException { |
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
| package br.jus.tjrs.antecedentescriminais.application.util; | |
| import br.com.andersonmatte.api.application.dto.MeuDTO; | |
| import com.github.jknack.handlebars.Handlebars; | |
| import com.github.jknack.handlebars.Template; | |
| import java.io.IOException; | |
| /** | |
| * Utilitário para preenchimento de dados via template com o auxílio do HandleBars. |
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 com.google.gson.JsonObject; | |
| import com.google.gson.JsonParser; | |
| import org.junit.Test; | |
| public class Teste { | |
| @Test | |
| public void test1(){ | |
| String jsonString = "{\"data\":\"Aqui vai o conteúdo que queremos, por exemplo.\\n\",\"exceptionKey\":0,\"messages\":null,\"uri\":null}"; | |
| JsonParser jsonParser = new JsonParser(); |
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
| SUBSYSTEM=="usb", ATTR{idVendor}=="0502", MODE="0666", GROUP="plugdev" #Acer | |
| SUBSYSTEM=="usb", ATTR{idVendor}=="0b05", MODE="0666", GROUP="plugdev" #ASUS | |
| SUBSYSTEM=="usb", ATTR{idVendor}=="413c", MODE="0666", GROUP="plugdev" #Dell | |
| SUBSYSTEM=="usb", ATTR{idVendor}=="0489", MODE="0666", GROUP="plugdev" #Foxconn | |
| SUBSYSTEM=="usb", ATTR{idVendor}=="04c5", MODE="0666", GROUP="plugdev" #Fujitsu | |
| SUBSYSTEM=="usb", ATTR{idVendor}=="04c5", MODE="0666", GROUP="plugdev" #Fujitsu Toshiba | |
| SUBSYSTEM=="usb", ATTR{idVendor}=="091e", MODE="0666", GROUP="plugdev" #Garmin-Asus | |
| SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", MODE="0666", GROUP="plugdev" #Google | |
| SUBSYSTEM=="usb", ATTR{idVendor}=="201E", MODE="0666", GROUP="plugdev" #Haier | |
| SUBSYSTEM=="usb", ATTR{idVendor}=="109b", MODE="0666", GROUP="plugdev" #Hisense |
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
| <string name="sua_string">Teste %1$s finalizado com sucesso.</string> |
NewerOlder