type pyproject.toml | sed -nr 's/^version\s*[^=]\s*\"(.+)\"$/\1/p'
cat pyproject.toml | sed -nr 's/^version\s*[\^=]\s*"(.+)"$/\1/p'
| import sys | |
| from PIL import Image, ImageDraw | |
| # test how to draw a transparent shape on an image in python with pillow | |
| G_IMAGE_FILE = '~example.tif' | |
| def drawRect(): | |
| # https://pillow.readthedocs.io/en/latest/reference/ImageDraw.html#PIL.ImageDraw.ImageDraw.rectangle |
| # ================================================== | |
| # Joachim testing radius pts | |
| # 2025-05-21 11:53:08 | |
| import math | |
| import random | |
| def randPoint_radius(radius, origin_x=0, origin_y=0): | |
| # modified from https://stackoverflow.com/a/32277202/883015 |
| # -------------------------------------------------- | |
| # joedf: modified based on these examples: | |
| # - https://stackoverflow.com/a/47378376/883015 | |
| # - https://gist.github.com/jasonrdsouza/1901709 | |
| # -------------------------------------------------- | |
| def _sys_exit(): | |
| # sys.exit() | |
| # quit() | |
| raise KeyboardInterrupt |
| Bank of America | |
| Cardinal Health | |
| Dream Works | |
| ExxonMobil | |
| Global Payments | |
| Linus Media Group | |
| NHS | |
| Northrop Grumman | |
| Plexus | |
| Samsung |
These libraries can be used to quickly create a GUI for configureable parameters using sliders, checkboxes, colors pickers etc
| # by joedf - MIT license - May 2022 | |
| from bs4 import BeautifulSoup | |
| import glob, csv | |
| # get html pages from either of these pages | |
| # https://tap-dig-my-museum-wiki.fandom.com/wiki/Fossils | |
| # https://tap-dig-my-museum-wiki.fandom.com/wiki/List_of_fossils | |
| def file2Soup(path, enc="utf8"): |
| // modified by joedf from https://gist.github.com/remi/e3aa2f78845ee13f706ed83aead5145f | |
| // Extract JSON payload from SHC QR code (without any kind of private/public key verification) | |
| // Credits + inspiration | |
| // https://github.com/dvci/health-cards-walkthrough/blob/main/SMART%20Health%20Cards.ipynb | |
| // Usage | |
| // $ node shc2.js "shc:/01234569…" | |
| const zlib = require("zlib"); |
| /* | |
| Name: Possibly a Hero | |
| Version 1.20 (Tuesday, March 27, 2018) | |
| Created: (Thu December 20, 2012) | |
| Author: tidbit | |
| Credit: | |
| Hotkeys: | |
| ctrl & w --- Quit (Main window) |