Tutorials

Python Regex Partial Replace

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

Check Ubuntu Version

August 8, 2017 Linux · Unix · Ubuntu ∙ lsb_release -a

Cross Platform DOM Ready

August 8, 2017 JavaScript ∙ Equivalent of document.onload or DOMContentLoaded.

How To Hide Email Address From Bots Using JavaScript

August 8, 2017 JavaScript ∙ Base64 encoded email address

Markdown Nested List

August 7, 2017 Markdown ∙ Support mixing of ordered list (number) with unordered list.

CSS Comment

August 7, 2017 CSS ∙ /* Commenting in CSS */

Task Lists In Markdown

August 7, 2017 Markdown ∙ Create a checked/unchecked list

How To Create Link With target='_blank' In Hugo Markdown

August 6, 2017 Hugo ∙ Using html or javascript or enable BlackFriday.hrefTargetBlank

How To Remove Old Linux Kernel Images (Ubuntu)

August 3, 2017 Linux · Unix · Ubuntu ∙ Don’t delete them using ‘rm’.

How To Check Directory Size On Linux

August 3, 2017 Linux · Unix · Ubuntu ∙ Find out which directory occupy the most disk space, usually for cleanup purpose.