| title | create_time | update_time | conversation_id |
|---|---|---|---|
生成AI活用部会名称案 |
2024-10-29 11:32:41 -0700 |
2024-10-29 11:42:09 -0700 |
6720abb9-02ac-800f-bcd6-f8d06477dc84 |
Creation Time: 2024-10-29 18:32:41
| #!/bin/bash | |
| SCRIPTNAME=$(basename "$0") | |
| function realpath () { | |
| f=$@; | |
| if [ -d "$f" ]; then | |
| base=""; | |
| dir="$f"; | |
| else | |
| base="/$(basename "$f")"; |
| #!/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. |
| #!/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 | |
| """ | |
| 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 | |
| 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 | |
| """ | |
| 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 |