| title | create_time | update_time | conversation_id |
|---|---|---|---|
リハーサルモードの注意点 |
2025-02-12 21:50:52 -0800 |
2025-02-12 21:54:58 -0800 |
67ad09ac-7f98-800f-abeb-1bc1993db4b1 |
Creation Time: 2025-02-13 05:50:52
| #!/usr/bin/env python3 | |
| """ | |
| Merge image files into a single PDF, optionally annotating images with their filenames using ImageMagick. | |
| The grid layout is controlled by the number of rows and columns. | |
| Use the --with-text flag to enable filename annotation (default is without text). | |
| You can adjust the annotation font size by using the --font-scale option. | |
| """ | |
| import argparse | |
| import os |
| #!/usr/bin/env python3 | |
| import os | |
| import re | |
| import argparse | |
| from datetime import datetime | |
| def timestamp_renamer(files, custom_prefix=None): | |
| for file_path in files: | |
| # Extract the file extension and convert it to lowercase |
| #!/usr/bin/env python3 | |
| """ | |
| Extract annotated pages from PDF files. | |
| This script reads one or more PDF files, checks each page for annotations, | |
| and writes a new PDF containing only those pages that contain annotations. | |
| If an output filename is not provided, the script uses the input file's basename | |
| but adds "_extracted" before the ".pdf" extension. | |
| Before overwriting an existing file, the user is prompted for confirmation. |
| #!/usr/bin/env python3 | |
| """ | |
| This script reads one or more specified text files and outputs their content with a header and footer. | |
| If the header/footer symbol "~~~" is found in a file, alternative symbols are used. | |
| It also provides an option to save the combined output to the clipboard (macOS only). | |
| """ | |
| import argparse | |
| import subprocess |
| #!/usr/bin/env python3 | |
| """ | |
| Convert an Excel (.xlsx) file to a CSV (UTF-8) file. | |
| Usage: | |
| python3 xlsx_to_csv.py [--method {pandas,soffice}] input.xlsx [output.csv] | |
| Options: | |
| -h, --help Show this help message and exit. |
| #!/bin/bash | |
| SCRIPTNAME=$(basename "$0") | |
| function realpath () { | |
| f=$@; | |
| if [ -d "$f" ]; then | |
| base=""; | |
| dir="$f"; | |
| else | |
| base="/$(basename "$f")"; |
| #!/usr/bin/env python3 | |
| # -*- coding: utf-8 -*- | |
| import os | |
| import sys | |
| def switch_directory(): | |
| current_path = os.getcwd() | |
| base_dir = os.path.abspath(current_path) | |
| if "src" in base_dir.split(os.sep): |