This file contains 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 date, timedelta | |
from pyluach import dates | |
def create_hebrew_to_english_dict(): | |
hebrew_to_english_dict = {} | |
first_gregorian_date = date.today() # two years ago | |
first_hebrew_date = dates.HebrewDate.from_pydate(first_gregorian_date) | |
for i in range(365 * 3): # three years | |
hebrew_date = dates.HebrewDate.from_pydate(first_gregorian_date + timedelta(days=i)) | |
hebrew_date_str = f"{hebrew_date.month}-{hebrew_date.day}" |
This file contains 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 csv | |
import requests | |
api_key = 'API KEY' | |
def validate_address(address, api_key): | |
""" | |
Validates an address using the Google Cloud Address Validation API and returns the postal address fields. | |
Args: | |
address (str): The address to be validated. |
This file contains 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 playwright.sync_api import Playwright, sync_playwright, expect | |
from ffmpeg import FFmpeg | |
# Function to run the audio enhancement process using Adobe Podcast | |
def run(playwright: Playwright, FILE) -> None: | |
# Launch the chromium browser | |
browser = playwright.chromium.launch() | |
# Create a new context with saved authentication information |
This file contains 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/python | |
import os | |
from datetime import datetime, time | |
from typing import Dict, Union | |
import requests | |
from dotenv import load_dotenv | |
from yt_dlp import YoutubeDL |
This file contains 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 | |
tmux new -s work -d | |
tmux rename-window -t work vim | |
tmux send-keys -t work 'cd repos/django/calmerge/calmerge && workon calmerge' C-m | |
tmux new-window -t work | |
tmux rename-window -t work server | |
tmux send-keys -t work 'cd repos/django/calmerge && workon calmerge && python manage.py runserver' C-m | |
tmux split-window -h -t work |