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
package com.crm.config; | |
import java.io.Serializable; | |
import java.util.Date; | |
import java.util.HashMap; | |
import java.util.Map; | |
import java.util.function.Function; | |
import org.springframework.beans.factory.annotation.Value; | |
import org.springframework.security.core.userdetails.UserDetails; | |
import org.springframework.stereotype.Component; |
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
O ano é 2091, 14 anos apos o inicio da grande decadência, causada inicialmente por um vírus que atingiu 90% da população que possuia implantes neurais para aprimoramento, | |
muitos enlouqueceram pelo caos que o virus causou entre suas mentes e a de personagens ficticios que estavam na rede, varias mentes ficaram perdidas no sistema sem conseguir | |
se comunicar com facilidade e atuam como fantasmas na rede, não é incomum achar desses gritando(quando possuem uma forma de se expressar) ou causando interfências em | |
desespero sem ter como sair daquela nova realidade, grandes ondas de poluição rondam o planeta, causando bloqueios do sol por dias chuvas ácidas | |
Não existe uma internet global, cada cidade possui uma rede isolada por motivos de segurança, só existem boatos sobre meios comunicação a nível global | |
Propagandas de oportunidades de recomeço em outras terras, que segundo boatos são fazendas de exploração de onde não se pode voltar | |
Corporações disputam controle com governos, ambos corruptos e destrutivos |
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
Política Fiscal: | |
Atributos: taxaDeTributação, gastosGovernamentais, políticasDeSubsídios. | |
Métodos: ajustarTaxaDeTributação(), alterarGastos(), iniciarSubsídios(), encerrarSubsídios(). | |
MercadoDeTítulos: | |
Atributos: taxaDeJuro, quantidadeDeTítulosEmitidos, valorTotalDosTítulos. | |
Métodos: comprarTítulo(), venderTítulo(), atualizarTaxaDeJuro(). | |
AgenteEconômico: |
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
package main | |
import ( | |
"github.com/gin-gonic/gin" | |
) | |
type AddParams struct { | |
X float64 `json:"x"` | |
Y float64 `json:"y"` | |
} |
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
package main | |
import ( | |
"github.com/gin-gonic/gin" | |
) | |
func main() { | |
router := gin.Default() | |
router.GET("/hello", func(c *gin.Context) { | |
c.JSON(200, gin.H{ |
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
package com.crm.config; | |
import org.springframework.beans.factory.annotation.Autowired; | |
import org.springframework.context.annotation.Bean; | |
import org.springframework.context.annotation.Configuration; | |
import org.springframework.security.authentication.AuthenticationManager; | |
import org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder; | |
import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity; | |
import org.springframework.security.config.annotation.web.builders.HttpSecurity; | |
import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity; | |
import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter; |
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
aws lambda create-function | |
--function-name Quarkuslambda | |
--zip-file fileb:///C://Users/srmac/projetos/quarkus-lambda/quarkuslambda/target/function.zip | |
--handler io.quarkus.amazon.lambda.runtime.QuarkusStreamHandler::handleRequest | |
--runtime java11 | |
--role "arn:aws:iam::1234567890:role/lambda-role" |
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
package com.bootstrap.springboot.service; | |
import java.util.ArrayList; | |
import org.springframework.beans.factory.annotation.Autowired; | |
import org.springframework.security.core.userdetails.User; | |
import org.springframework.security.core.userdetails.UserDetails; | |
import org.springframework.security.core.userdetails.UserDetailsService; | |
import org.springframework.security.core.userdetails.UsernameNotFoundException; | |
import org.springframework.stereotype.Service; |
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
ResponseEntity<Map> response = restTemplate.exchange(userInfoEndpointUri, HttpMethod.GET, entity, Map.class); | |
Map userAttributes = response.getBody(); | |
model.addAttribute("name", userAttributes.get("name")); |
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
<div class="col-sm-3 well"> | |
<h3>Logar com:</h3> | |
<div class="list-group"> | |
<p th:each="url : ${urls}"> | |
<a th:text="${url.key}" th:href="${url.value}" class="list-group-item active">Client</a> | |
</p> | |
</div> | |
</div> |
NewerOlder