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 | |
| # finnish_word_letter_counter.py | |
| """ | |
| A training set generator to assist a Finnish GPT-2 model in counting letters in a given word, | |
| including reasoning steps. The script generates data in a specific format suitable for training | |
| the model to perform letter counting tasks with explanations. | |
| (c) FlyingFathead 2024 | |
| """ |
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 bash | |
| # | |
| # ffmpeg_encodetotarget_mp3_strict: Encode input to MP3, never exceed the specified target MB. | |
| # Uses a binary search on bitrate to get as close as possible to the limit without going over. | |
| # | |
| # Usage: ffmpeg_encodetotarget_mp3_strict <inputfile> <target_MB> [<max_iterations>] | |
| # | |
| # Example: | |
| # ffmpeg_encodetotarget_mp3_strict myaudio.wav 5 | |
| # => tries to produce an MP3 no bigger than 5 MB |
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 | |
| # this is a simple script that allows you to use yt-dlp to get an audio file | |
| # and recode it (if necessary) to fit within target size limitations. | |
| import sys | |
| import os | |
| import subprocess | |
| # ---------------------- | |
| # CONFIG |
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 | |
| # | |
| # vix_ticker.py | |
| # | |
| # A simple Python program to monitor the Chicago Board Options Exchange's | |
| # CBOE Volatility Index (^VIX) via Yahoo Finance. | |
| # | |
| # The purpose of this small program is to trigger warnings via Yahoo Finance | |
| # in case of market panic or other volatility; useful knowledge for many. | |
| # |
OlderNewer