# Install iTerm
# Install zsh
# install brew
# Install oh-my-zsh
# Install dracula theme
# Install FireCode font and configure iTerm
# Install starship
brew install starship
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.sunrun.fi.ingestion.input | |
import java.io.ByteArrayOutputStream | |
import java.nio.file.Paths | |
import java.util.zip.ZipInputStream | |
interface Step<I, O> { | |
fun process(input : I) : O | |
} |
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
syntax enable | |
set smartindent | |
set tabstop=4 | |
set shiftwidth=4 | |
set expandtab |
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
{"lastUpload":"2020-07-31T03:28:01.783Z","extensionVersion":"v3.4.3"} |
http://www.oreilly.com/programming/free/files/microservices-for-java-developers.pdf
http://www.oreilly.com/programming/free/files/microservices-for-java-developers.epub
http://www.oreilly.com/programming/free/files/microservices-for-java-developers.mobi
http://www.oreilly.com/programming/free/files/modern-java-ee-design-patterns.pdf
http://www.oreilly.com/programming/free/files/modern-java-ee-design-patterns.epub
http://www.oreilly.com/programming/free/files/modern-java-ee-design-patterns.mobi
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
curl -X GET \ | |
http://localhost:8180/auth/realms/sso/protocol/openid-connect/userinfo \ | |
-H "Authorization: Bearer TOKEN" | jq '.' | |
# response | |
{ | |
"seller": "seller@seller.com", | |
"sub": "f:5e0b46cc-c7df-42ed-9727-6334cc080e59:8582812", | |
"email_verified": true, | |
"name": "Humberto Reis", |
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
curl -X POST \ | |
http://localhost:8180/auth/realms/sso/protocol/openid-connect/token \ | |
-H "Content-Type='application/x-www-form-urlencoded'" \ | |
-d "grant_type=authorization_code" \ | |
-d "client_id=test" \ | |
-d "client_secret=CLIENT_SECRET" \ | |
-d "code=AUTHORIZATION_CODE" \ | |
-d "redirect_uri=https://example.com/" \ | |
-d "scope=openid cpf" | jq '.' |
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
--[[ | |
Dado dois parametros, sendo o primeiro um vetor de inteiros e o segundo um inteiro, | |
retorne todos os pares de inteiros cujo o resultado de sua | |
multiplicação seja igual ao segundo parametro. | |
Ex:In: [2, 4, 3, 1, 12, 6] e 12 Out: [(2, 6), (4, 3), (1, 12)] | |
--]] | |
local table = require "luatable" | |
local lista = table({2, 4, 3, 1, 12, 6}) | |
local esperado = 12 |
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
(ns playground.mutimethods) | |
(defrecord DeclaracaoSimplificada [nome cpf total-redimentos]) | |
(defrecord DeclaracaoCompleta [nome cpf total-redimentos despesas]) | |
(defrecord Despesa [descricao valor]) | |
(defn imposto-a-pagar-b [declaracao] | |
(if (record? DeclaracaoSimplificada) | |
(* 0.15 (:total-redimentos declaracao)) | |
(* 0.275 (:total-redimentos declaracao)))) |
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
functions: | |
hello: | |
handler: handler.hello | |
events: | |
- http: | |
path: users | |
method: get | |
integration: lambda | |
request: | |
template: |
NewerOlder