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
export type Primitive<T> = T extends string | |
? string | |
: T extends number | |
? number | |
: T extends boolean | |
? boolean | |
: T extends Record<keyof any, unknown> | |
? Lookalike<T> | |
: never; |
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 python | |
# Script: remove_jpg_if_raw_exists.py | |
# | |
# Description: This script looks in all sub directories for | |
# pairs of JPG and RAW files. | |
# For each pair found the JPG is moved to a | |
# waste basket directory. | |
# Otherwise JPG is kept. | |
# | |
# Author: Thomas Dahlmann |