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 PyPDF2 import PdfReader, PdfWriter | |
| import os | |
| # Create output directory if it doesn't exist | |
| os.makedirs("output", exist_ok=True) | |
| # Before running: | |
| # pip3 install PyPDF2 | |
| # Input and Output file paths | |
| input_pdf_path = "original.pdf" |
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
| # 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 |
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
| // slowly scroll to the top of the page | |
| $('html, body').animate({ scrollTop: 0 }, 'slow'); |
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
| $("#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); |
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
| hello |