-
How do I print a Python datetime in the local timezone? – Stack Overflow
from datetime import datetime
import pytz
from tzlocal import get_localzone # $ pip install tzlocalutc_dt = datetime.now()
print(utc_dt.astimezone(get_localzone())) # print local time -
git – How to change line-ending settings – Stack Overflow
“Checkout Windows-style, commit Unix-style
Git will convert LF to CRLF when checking out text files. When committing text files, CRLF will be converted to LF. For cross-platform projects, this is the recommended setting on Windows (“core.autocrlf” is set to “true”)
Checkout as-is, commit Unix-style
Git will not perform any conversion when checking out text files. When committing text files, CRLF will be converted to LF. For cross-platform projects this is the recommended setting on Unix (“core.autocrlf” is set to “input”).
Checkout as-is, commit as-is
Git will not perform any conversions when checking out or committing text files. Choosing this option is not recommended for cross-platform projects (“core.autocrlf” is set to “false”)”
-
Turn on Line Wrap – support – Atom Discussion
“Atom > Open Your Config
Add ‘softWrap’:true to the ‘editor’ section like this:
‘editor’:
‘softWrap’: true”