sudo apt update && sudo apt upgrade| package com.github.humbertodosreis | |
| /** | |
| * Given an array of characters and another array of words, create a function that can tell which words can be formed with the characters of the array. | |
| * characters = ['o', 'f', 'c' ,'f', 'e', 'e', 'i', 'n', 't', 'b', 'l'] | |
| * words = ['coffin' , 'coffee', 'win', 'beetle'] | |
| * output = ['coffin' , 'coffee'] | |
| */ | |
| fun main() { | |
| val characters = arrayOf('o', 'f', 'c', 'f', 'e', 'e', 'i', 'n', 't', 'b', 'l') |
This notes is written by Sheldon. You can find me with #iOSBySheldon in Github, Youtube, Facebook, etc.
Convert .mov/.MP4 to .gif
As a developer, I feel better to upload a short video when I create the pull request to show other viewers what I did in this PR. I tried .mov format directly got after finishing recording screen using Quicktime, however, gif offers preview in most web pages, and has smaller file size.
This is not limited to developer, anyone has this need can use this method to convert the files.
| 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 | |
| } |
# Install iTerm
# Install zsh
# install brew
# Install oh-my-zsh
# Install dracula theme
# Install FireCode font and configure iTerm
# Install starship
brew install starship| syntax enable | |
| set smartindent | |
| set tabstop=4 | |
| set shiftwidth=4 | |
| set expandtab |
| {"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
| 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", |
| 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 '.' |