There are boolean, rune, integer, floating-point, complex, and string constants.
Rune, integer, floating-point, and complex constants are collectively called numeric constants.
reCAPTCHA is a free google service that protects your website from spam and abuse.
reCAPTCHA uses an advanced risk analysis engine and adaptive challenges to keep automated software
from engaging in abusive activities on your site. It does this while letting your valid users pass through with ease.
// set / change password for user postgres
sudo passwd postgres
How to add a user to sudo group?
adduser username sudo
// or
usermod -aG sudo username
How to execute commands as other user?
su // as root
su - postgres // login as postgres
su postgres // switch to postgres
// preserve the entire environment (HOME, SHELL, USER, and LOGNAME) of the calling user
su -p postgres
Netlify is a web developer platform that multiplies productivity.
Netlify provides continuous deployment services, global CDN, atomic deploys,
instant cache invalidation, one-click SSL, a browser-based interface, and many other features for managing our Hugo website.
C:\Users\Andrew>python
Python 3.8.2 (tags/v3.8.2:7b3ab59, Feb 25 2020, 23:03:10) [MSC v.1916 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>>
Python defaults to a float in any operation that uses a float, even if the output is a whole number.
you can group digits using underscores to make large numbers more readable
0.1*2 # 0.2
0.1+0.1 # 0.2
# arbitrary number of decimal may places in your result
3*0.1 # 0.30000000000000004
0.1+0.2 # 0.30000000000000004
# Divide any two integer get float
4/2 # 2.0
# Mix integer and float: get float
3+1.0 # 4.0
# Multiple assignment
x, y, z = 0, 0, 0
Constants
No built-in constant types
Convention: Use all capital letters
MAX_CONNECTS = 20
Comments
Use # to comment code. Anything after # are ignored.