4th June 2021
Coding⚑
Python⚑
Python Snippets⚑
-
New: Explain how to convert html code to readable plaintext.
pip install html2text
import html2text html = open("foobar.html").read() print(html2text.html2text(html))
-
New: Explain how to parse a datetime from a string.
from dateutil import parser parser.parse("Aug 28 1999 12:00AM") # datetime.datetime(1999, 8, 28, 0, 0)
Python Mysql⚑
- New: Explain how to interact with MySQL databases with Python.
Arts⚑
Writing⚑
Grammar and Orthography⚑
-
New: Explain what collocations are and how to avoid the word very.
Collocation refers to a natural combination of words that are closely affiliated with each other. They make it easier to avoid overused or ambiguous words like "very", "nice", or "beautiful", by using a pair of words that fit the context better and that have a more precise meaning.