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 os | |
import re | |
import sys | |
FILE_MATCH = "tfm-" | |
FILE_EXTENSTIONS = ('.srt', '.md', '.txt', '.mp3', '.mp4') # Add '.mp3' and '.mp4' extensions | |
DIRECTORY = os.getcwd() | |
if not sys.argv or len(sys.argv) < 2: | |
print("You must pass search args") |
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 sys | |
import re | |
if len(sys.argv) != 3: | |
print("Usage: python3 search_one_file.py <srt_file_path> <search_string>") | |
sys.exit(1) | |
srt_file_path = sys.argv[1] | |
search_string = sys.argv[2] |
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/python3 | |
# -*- coding: utf-8 -*- | |
inputs = ['face', 'height', 'body', 'money', 'p-length', 'intelligence'] | |
weights = [5, 3, 2, 2, 2, 1] | |
# Courtesy of Wheat Waffles | |
# https://www.youtube.com/watch?v=kZqNkkX7oeE | |
def calculate_smv(): |