Before using the library, be sure to either
import colorlib
// | |
// FILENAME: canCapture.Swift | |
// DESCRIPTION: A program that test if a queen on a chess board at a certain | |
// location could capture a piece at another location. | |
// COPYRIGHT: Copyright (c) 2020 by Ryan Smith | |
// | |
import Swift | |
func makePair(coords: String, fromKey key: [Character: Int]) -> (x: Int?, y: Int?) { |
A Python automation script that sorts photos into certain directories based on the date they were taken.
The script uses image metadata, specifically the date the photo was taken, to determine what directories to create and where to move the photos.
All new directories are created using os.makedirs()
with exist_ok=True
, so if you already have a directory named 2022
in the target directory (the place where your unsorted photos are stored), nothing will be deleted or overwritten. However, directories may be added within that directory depending on the sorting method you choose.