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
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
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> |
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
spring.security.oauth2.client.registration.google.client-id=368238083842-3d4gc7p54rs6bponn0qhn4nmf6apf24a.apps.googleusercontent.com | |
spring.security.oauth2.client.registration.google.client-secret=2RM2QkEaf3A8-iCNqSfdG8wP | |
spring.security.oauth2.client.registration.facebook.client-id=151640435578187 | |
spring.security.oauth2.client.registration.facebook.client-secret=3724fb293d401245b1ce7b2d70e97571 |
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
<dependency> | |
<groupId>org.springframework.security</groupId> | |
<artifactId>spring-security-oauth2-client</artifactId> | |
</dependency> | |
<dependency> | |
<groupId>org.springframework.security</groupId> | |
<artifactId>spring-security-oauth2-jose</artifactId> | |
</dependency> |
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.boilerplate.kafka.service; | |
import java.util.concurrent.CountDownLatch; | |
import org.springframework.kafka.annotation.KafkaListener; | |
import org.springframework.kafka.support.KafkaHeaders; | |
import org.springframework.messaging.handler.annotation.Header; | |
import org.springframework.messaging.handler.annotation.Payload; | |
import com.boilerplate.kafka.model.Message; |
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.boilerplate.kafka.service; | |
import org.springframework.beans.factory.annotation.Autowired; | |
import org.springframework.beans.factory.annotation.Value; | |
import org.springframework.kafka.core.KafkaTemplate; | |
import org.springframework.kafka.support.SendResult; | |
import org.springframework.util.concurrent.ListenableFuture; | |
import org.springframework.util.concurrent.ListenableFutureCallback; | |
import com.boilerplate.kafka.model.Message; |
NewerOlder