For Bunpro users who wants to review grammar using Anki's SRS instead of Bunpro's built-in SRS.
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 traceback | |
| import openai | |
| import sys | |
| # list models | |
| models = openai.Model.list() | |
| def baka(error, character="tsundere",): | |
| exc_type, exc_value, exc_traceback = sys.exc_info() | |
| traceback_list = traceback.extract_tb(exc_traceback) |
This is a list of the most commonly used and relevant vtubing software. The "best" will always be subjective and depend on your specific requirements. Overall, the information in this list is as accurate as I could figure it out, but there might be errors or some details might become out of date. If you find anything that needs to be corrected, please let me know. You can also note it in a comment.
Additional explanations:
- iPhone means that an iPhone is basically required
- iFacialMocap support means that tracking data can be received from the iFacialMocap iPhone app
- VMC protocol means that the application can send and/or receive tracking data from other VMC protocol capable applications, allowing the combination of multiple tracking methods (e.g. VSeeFace receiving VR tracking from Virtual Motion Capture and iPhone/ARKit face tracking from Waidayo)
- Tobii means that the Tobii eye tracker is supported
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/python3 -u | |
| # | |
| # Copyright Dan Smith <[email protected]> | |
| # | |
| # This downloads USGS topo GeoPDF maps in bulk, by default the current | |
| # high-resolution 7.5-minute maps. For reference, all of Oregon comes to | |
| # 96GB, all of Washington is 78G. For each state, the index will be downloaded | |
| # into the root of the per-state directory, which is how you find which | |
| # section map you need, by name. | |
| # |
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 puppeteer from 'puppeteer-extra'; | |
| import pluginStealth from 'puppeteer-extra-plugin-stealth'; // Use v2.4.5 instead of latest | |
| import * as readline from 'readline'; | |
| puppeteer.use(pluginStealth()); | |
| // Use '-h' arg for headful login. | |
| const headless = !process.argv.includes('-h'); | |
| // Prompt user for email and password. |
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
| # calculating RSI (gives the same values as TradingView) | |
| # https://stackoverflow.com/questions/20526414/relative-strength-index-in-python-pandas | |
| def RSI(series, period=14): | |
| delta = series.diff().dropna() | |
| ups = delta * 0 | |
| downs = ups.copy() | |
| ups[delta > 0] = delta[delta > 0] | |
| downs[delta < 0] = -delta[delta < 0] | |
| ups[ups.index[period-1]] = np.mean( ups[:period] ) #first value is sum of avg gains |
Extract audio from a YouTube video file
ffmpeg -i INPUT.mp4 -ab 256k OUTPUT.mp3Cut 3s length
ffmpeg -y -ss 00:00:03 -i INPUT.mp4 -codec copy OUTPUT.mp4
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
| # Simple Google Drive backup script with automatic authentication | |
| # for Google Colaboratory (Python 3) | |
| # Instructions: | |
| # 1. Run this cell and authenticate via the link and text box. | |
| # 2. Copy the JSON output below this cell into the `mycreds_file_contents` | |
| # variable. Authentication will occur automatically from now on. | |
| # 3. Create a new folder in Google Drive and copy the ID of this folder | |
| # from the URL bar to the `folder_id` variable. | |
| # 4. Specify the directory to be backed up in `dir_to_backup`. |
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 numpy as np | |
| EPSILON = 1e-10 | |
| def _error(actual: np.ndarray, predicted: np.ndarray): | |
| """ Simple error """ | |
| return actual - predicted |
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 | |
| """ | |
| License: MIT License | |
| Copyright (c) 2023 Miel Donkers | |
| Very simple HTTP server in python for logging requests | |
| Usage:: | |
| ./server.py [<port>] | |
| """ | |
| from http.server import BaseHTTPRequestHandler, HTTPServer |
NewerOlder