This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from datetime import datetime, timedelta | |
def get_reps(subject): | |
check = r"{{[[TODO]]}}" | |
suffix = ( | |
lambda d: "th" if 10 < d < 14 else {1: "st", 2: "nd", 3: "rd"}.get(d % 10, "th") | |
) | |
today = datetime.now() | |
rep1 = today + timedelta(days=1) | |
rep2 = today + timedelta(weeks=1) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\list # lists all databases | |
create database database_name; # create a database | |
DROP DATABASE database_name; # drop database | |
\c db_name # connect to a certain database | |
\dt # lists all tables in the current database | |
\d table_name # view table | |
DROP TABLE table_name; # drop table | |
\q # exit |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Title</title> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | |
<meta name="description" content=""> |