Skip to main content

Posts

Android Layout.gravity vs gravity itself

Layout.gravity is about the component(e.g TextView) with the device
gravity is the stuff(e.g. text) with that component
Recent posts

Sublime 3 - useful keyboard shortcuts

source #1: http://www.hongkiat.com/blog/sublime-text-tips/
source #2: https://www.cheatography.com/tdeyle/cheat-sheets/sublime-text-3/
Ctrl + D
Select a word.

Ctrl + L
Select a line.

Ctrl + A
Select the entire content within the document.

Ctrl + Shift + M
Select anything inside the bracket (which is useful when working with CSS or JavaScript)

Furthermore, Sublime Text brings lets us select multiple lines at once, which can significantly boost your productivity. There are several ways to perform this feature:

Ctrl

Hold the Ctrl key and click on the lines that you want to select.

Ctrl + Shift + G
Select a code, line, or word first the hit this combo to select the others with the same instances.

Ctrl + D
Hit this key to quickly select the next code, line, or word that has the same instances as you are currently selecting.

Spring boot Common application properties

http://docs.spring.io/spring-boot/docs/current/reference/html/common-application-properties.html
# ===================================================================# COMMON SPRING BOOT PROPERTIES## This sample file is provided as a guideline. Do NOT copy it in its# entirety to your own application. ^^^# ===================================================================# ----------------------------------------# CORE PROPERTIES# ----------------------------------------# BANNERbanner.charset=UTF-8 # Banner file encoding.banner.location=classpath:banner.txt # Banner file location.banner.image.location=classpath:banner.gif # Banner image file location (jpg/png can also be used).banner.image.width= # Width of the banner image in chars (default 76)banner.image.height= # Height of the banner image in chars (default based on image height)banner.image.margin= # Left hand image margin in chars (default 2)banner.image.invert= # If images should be inverted for dark terminal theme…