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.vndmtrx.springboot.tarefas.modelos; | |
| import javax.validation.constraints.Size; | |
| import java.util.Date; | |
| import javax.validation.constraints.NotNull; | |
| import org.springframework.data.annotation.Id; | |
| import org.springframework.data.mongodb.core.index.Indexed; |
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 io.github.vndmtrx.spring | |
| import org.springframework.boot.SpringApplication | |
| import org.springframework.boot.autoconfigure.SpringBootApplication | |
| @EnableAutoConfiguration | |
| @ComponentScan | |
| class Application | |
| fun main(args: Array<String>) { |
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 io.github.vndmtrx.spring | |
| import org.springframework.boot.SpringApplication | |
| import org.springframework.boot.autoconfigure.SpringBootApplication | |
| @EnableAutoConfiguration | |
| @ComponentScan | |
| class Application { | |
| companion object { | |
| @JvmStatic fun main(args: Array<String>) { |
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 io.github.vndmtrx.spring | |
| import org.springframework.boot.SpringApplication | |
| import org.springframework.boot.autoconfigure.SpringBootApplication | |
| @SpringBootApplication | |
| open class Application { | |
| companion object { | |
| @JvmStatic fun main(args: Array<String>) { | |
| SpringApplication.run(Application::class.java, *args) |
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 io.github.vndmtrx.spring; | |
| import org.springframework.boot.SpringApplication; | |
| import org.springframework.boot.autoconfigure.SpringBootApplication; | |
| @SpringBootApplication | |
| public class Application { | |
| public static void main(String[] args) { | |
| SpringApplication.run(Application.class, args); | |
| } |
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
| cmake_minimum_required(VERSION 3.4) | |
| project(teste_pasta) | |
| #Adicionando os cabeçalhos, como o Mensagem.h no projeto | |
| include_directories(includes) | |
| #Podemos adicionar manualmente os fontes usando o comando abaixo: | |
| #set(FONTES src/main.cpp src/Mensagem.cpp) | |
| #No entanto, o comando file(GLOB...) nos permite usar wildcards para simplificar a adição de vários arquivos: |
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
| cmake_minimum_required(VERSION 3.4) | |
| project(hello) | |
| add_executable(hello helloworld.cpp) |
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
| #include <iostream> | |
| int main(int argc, char *argv[]) { | |
| std::cout << "Hello World!" << std::endl; | |
| return 0; | |
| } |
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
| class ClasseGenerica<T> { | |
| T ob; | |
| ClasseGenerica(T o) { | |
| ob = o; | |
| } | |
| T getob() { | |
| return ob; | |
| } |
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 calcSalario(e) { | |
| var a = parseInt(e.ddAno.value, 10); | |
| 1 == a ? (ftstep = 1.036, base = 1086.32) : 2 == a ? (ftstep = 1.037, base = 1086.32) : 3 == a ? (ftstep = 1.037, base = 1140.64) : 4 == a ? (ftstep = 1.038, base = 1140.64) : 5 == a || 6 == a ? (ftstep = 1.038, base = 1197.67) : 7 == a ? (ftstep = 1.038, base = 1263.54) : 8 == a ? (ftstep = 1.039, base = 1326.72) : 9 == a ? (ftstep = 1.0405, base = 1535.84) : 10 == a ? (ftstep = 1.043, base = 1960.17) : 11 == a && (ftstep = 1.0455, base = 2501.73), e.medico.checked && (base = 2 * base); | |
| var d = parseFloat(e.ddClasse.value) + parseFloat(e.ddNivel.value) + parseFloat(e.ddProg.value) - 3, | |
| u = e.ddCargaH.value; | |
| if (0 == e.ddCD.value || e.rdCD[0].checked) var l = Math.floor(base * Math.pow(ftstep, d) * u * 100) / 100; | |
| else var l = valorCD(e.ddCD.value, a); | |
| var r = e.numAnuenio.value / 100 * l, | |
| n = 0; | |
| n = 6 > a ? e.alim.checked ? 373 : 0 : e.alim.checked ? 458 : 0, .5 == u && (n /= 2); |