Skip to content

Instantly share code, notes, and snippets.

@yayadrian
yayadrian / conf.py
Last active May 25, 2023 07:59 — forked from cleverdevil/overcast-recently-played.py
Fetch recently played episodes from Overcast.fm. Then, create a CSV and create files in Obsidian using a template
# conf.py
SESSION_PATH = "./sessions" # will create the sessions file in the current folder
EMAIL = "CHANGE-ME"
PASSWORD = "CHANGE-ME"
HISTORY_PATH = "./history" # will create the records of episodes in the history folder
ENDPOINT_URL = "https://api.example.com/endpoint"
EXPORT_FILENAME = "./playedEpisodes.csv" # export file for the episodes played
MD_TEMPLATE = 'CHANGE-ME' # path to the obsidian template MD
OUTPUT_FOLDER = 'CHANGE-ME' # path for the Obsidian output folder
// slowly scroll to the top of the page
$('html, body').animate({ scrollTop: 0 }, 'slow');
$("#date").blur(function() {
var value= $(this).val();
var userDate = new Date(value);
var dateString = Date();
var currDate = new Date(dateString);
var minDate = new Date(dateString);
hello