Tutorials

Android TextView Center Text (include Multiline Text)

August 17, 2017 Android ∙ android:gravity=“center”

Dot In Html

August 17, 2017 HTML ∙ Middle Dot, Bullet, Black Circle, etc. in HTML or Unicide.

Iterate Android Cursor

August 15, 2017 Android ∙ The simplest way to loop cursor.

Android Google Maps Color And Style

August 15, 2017 Android ∙ Create greyscale (black & white) or dark night mode map.

Webpack Wildcard Support For Entry Points

August 12, 2017 webpack ∙ glob.sync(“./src/*.js”)

Install Ubuntu Updates (command line)

August 12, 2017 Linux · Unix · Ubuntu ∙ sudo apt-get update && sudo apt-get upgrade

Show Linux Directory Structure As Ascii Text

August 10, 2017 Linux · Unix · Ubuntu

Python Concat String

August 9, 2017 Python ∙ Format string, join list or append string.

Python Regex Match

August 9, 2017 Python ∙ Use re.search

Python Regex Partial Replace

August 9, 2017 Python ∙ Use capture group and reference: re.sub(r”(match)(replace)“, r”\1new”, string)