Skip to content

Instantly share code, notes, and snippets.

View gduverger's full-sized avatar

Georges Duverger gduverger

View GitHub Profile
@shindig7
shindig7 / roam_spaced_repetition.py
Created June 6, 2020 15:21
Creates spaced repetition reminders for Roam Research (https://roamresearch.com/) at 1 day, 1 week, 1 month, 4 month, and 1 year intervals
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)
\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
@gduverger
gduverger / index.html
Last active March 17, 2019 02:22
HTML5
<!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="">