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/env python3 | |
from PIL import Image, ImageDraw, ImageFont | |
""" | |
Create a blank PNG image with a test string—A code written by ChatGPT o3-mini-high. | |
This script is created by ChatGPT o3-mini-high with the following prompt: | |
Objective: Write a Python code that creates a PNG file. | |
Specification: | |
- Ask the user for the dimension of the image. |
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/env python3 | |
import csv | |
from collections import Counter | |
from datetime import datetime | |
from pathlib import Path | |
from list_files_sha256 import hash_by_256, list_fpaths_in_dir | |
class FindDupFile: |
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/env python3 | |
import csv | |
from hashlib import sha256 | |
from pathlib import Path | |
def hash_by_256(fpath): | |
""" | |
Computes a SHA-256 hash of a file using variable chunk sizes based on file size. |
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/env python3 | |
from io import BytesIO | |
import requests | |
from pdfminer.high_level import extract_text | |
def extract_str_fm_pdf_url(url_pdf): | |
"""Extract strings directly from a PDF file URL. | |
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
#!/usr/bin/env zsh | |
my_name=$(basename "$0") | |
display_help() { | |
cat <<EOF | |
${my_name}: | |
Duplicate a template directory and rename. | |
EOF |
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/env python3 | |
from datetime import date, timedelta | |
def find_next_monday(yyyymmdd): | |
"""Return this or next Monday. | |
""" | |
date_iso = date.fromisoformat(yyyymmdd) | |
day_o_wk = date_iso.isocalendar().weekday # Mon: 1, ... Sun: 7 | |
dy_delta = 8 - day_o_wk |
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/env zsh | |
my_name=$(basename "$0") | |
display_help() { | |
cat <<EOF | |
${my_name}: | |
Display a numbered file list of a specified directory. | |
EOF |
We can make this file beautiful and searchable if this error is corrected: It looks like row 6 should actually have 5 columns, instead of 4 in line 5.
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
field_type,column_name,data_type,description,source | |
basic,Name,text,use this column for the names of the tasks in your project.,https://help.asana.com/s/article/preparing-data-for-csv-import | |
basic,Description,text,use this column to provide details and context within the task.,https://help.asana.com/s/article/preparing-data-for-csv-import | |
basic,Section,text,a new section will be created once you manually move tasks into the desired section or column.,https://help.asana.com/s/article/preparing-data-for-csv-import | |
basic,Assignee,email_addr,assign one owner to each task by adding the email address of an Asana user from your workspace or organization. Tasks created in Asana can only be assigned to one user.,https://help.asana.com/s/article/preparing-data-for-csv-import | |
basic,Collaborators,email_addr,you can add several of your colleagues as collaborators on a task by adding email addresses of valid Asana users from your workspace or organization on a separate column. Take care to separate them with a comma and do |
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
col | ja | en | |
---|---|---|---|
0 | ID | ID | |
1 | プロジェクトID | Project ID | |
2 | プロジェクト名 | Project Name | |
3 | キーID | Key ID | |
4 | キー | Key | |
5 | 種別ID | Issue Type ID | |
6 | 種別 | Issue Type | |
7 | カテゴリーID | Category ID | |
8 | カテゴリー名 | Category Name |
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/env zsh | |
my_name=$(basename "$0") | |
display_help() { | |
echo usage: "${my_name}" | |
} | |
main() { | |
printf "*** Opens ./meetings/yyyymmddHHMM/index.rst with Vim. ***\n" | |
printf "\033[93mMeeting Date?(yyyymmdd) >> \033[0m" | |
read -r mtg_date |