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 | |
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 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 zsh | |
my_name=$(basename "$0") | |
display_help() { | |
cat <<EOF | |
${my_name}: | |
Duplicate a template directory and rename. | |
EOF |
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 | |
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 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 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 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
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 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
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 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 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 |
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 | |
import re | |
from pathlib import Path | |
import pandas as pd | |
def glob_backlog_csvs(csv_dir): | |
csv_files = list(Path(csv_dir).glob('Backlog-Issues*.csv')) | |
if csv_files: |
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 | |
import calendar | |
from datetime import date | |
import numpy as np | |
def ordinal(n): | |
"""Converts an integer to its ordinal representation. | |
Reference: |
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 | |
from collections import namedtuple | |
from datetime import datetime | |
def get_week_dates(date_str): | |
"""Return the dates within the same week as the given date. | |
Args: | |
date_str (str): A date string in ISO format (e.g., '2021-01-01'). | |
Returns: |