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
# test_main.py | |
# for https://github.com/CIS-3500/my-password-validator | |
import pytest | |
from main import app | |
@pytest.fixture | |
def client(): | |
""" |
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
#!/bin/bash | |
################################################################################### | |
# Automatic gh-pages site updater | |
# | |
# Author: Jérémie Lumbroso <[email protected]> | |
# Date: February 13, 2024 | |
# | |
# This script automates updating a GitHub Pages site hosted on the gh-pages branch | |
# of a repository. It takes a local folder containing the static site content and |
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
#!/usr/bin/env python3 | |
""" | |
combine_for_model.py | |
Author: Jérémie Lumbroso <[email protected]> | |
Date: July 25, 2023 | |
Version: 1.0 | |
Description: |
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
#!/usr/bin/env python3 | |
""" | |
decrypt_all_pdfs.py | |
Author: Jérémie Lumbroso <[email protected]> | |
Date: November 3, 2023 | |
Description: | |
This script recursively finds all PDF files within a specified directory path, | |
checks if they are encrypted (without a password), and attempts to decrypt them |
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
import re | |
_LATEX_POST_ENTITY = "{}" | |
# Mapping of Unicode characters to LaTeX expressions | |
MAPPING = { | |
"∀": "\\forall", | |
"∃": "\\exists", | |
"→": "\\rightarrow", | |
"↔": "\\leftrightarrow", |
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
import re | |
import codepost | |
# ================================================================ | |
# VARIABLE PARAMETERS | |
# get the API key here: https://codepost.io/settings | |
API_KEY = "... see above where to get this ..." | |
COURSE_NAME = "COS126" | |
COURSE_TERM = "S2023" | |
ASSIGNMENT = "Atomic" |
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
import codepost | |
# fancy progress bar if available | |
try: | |
from tqdm import tqdm | |
except ModuleNotFoundError: | |
# dummy replacement that does nothing | |
tqdm = lambda x: x | |
# variable parameters |
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
import codepost | |
# variable parameters | |
# get the API key here: https://codepost.io/settings | |
API_KEY = "... see above where to get this ..." | |
# mapping a codePost ID to students | |
# (note that this could be loaded from a CSV file) | |
partnerships = { | |
65490: ["[email protected]", "[email protected]"], |
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
import codepost | |
# variable parameters | |
# get the API key here: https://codepost.io/settings | |
API_KEY = "... see above where to get this ..." | |
COURSE_NAME = "COS126" | |
COURSE_TERM = "F2022" | |
ASSIGNMENT = "Final Project Proposal PDF" | |
DEFAULT_TEACHER = "[email protected]" |
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
import codepost | |
# fancy progress bar if available | |
try: | |
from tqdm import tqdm | |
except ModuleNotFoundError: | |
# dummy replacement that does nothing | |
tqdm = lambda x: x | |
# variable parameters |
NewerOlder