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
| """Module to recursively delete Sony RAW (.ARW) files from a directory.""" | |
| import logging | |
| from pathlib import Path | |
| def delete_arw_files(target_dir: str = "."): | |
| """Recursively finds and removes all files with the .arw extension. | |
| 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
| import os | |
| import re | |
| from datetime import datetime | |
| from pathlib import Path | |
| from PIL import Image | |
| # Tag IDs for EXIF data | |
| # 36867: DateTimeOriginal (Shutter click) | |
| # 306: DateTime (Last metadata change) | |
| EXIF_DATE_TAGS = (36867, 306) |
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
| defaults write com.apple.systempreferences AttentionPrefBundleIDs 0 && killall Dock |
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
| #define _CRT_SECURE_NO_WARNINGS | |
| #include <iostream> | |
| #include <fstream> | |
| #include <string> | |
| #include <numeric> | |
| #include <algorithm> | |
| #include <vector> | |
| #include <set> | |
| #include <sstream> | |
| #include <random> |
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
| start_time=0:0 | |
| duration=10 | |
| # Windows Bash | |
| palette="/c/python3/scripts/palette.png" | |
| # Linux / Mac Bash | |
| # palette="/tmp/palette.png" | |
| filters="fps=15,scale=320:-1:flags=lanczos" |
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
| Abyssinian | |
| Aegean | |
| American Curl | |
| American Bobtail | |
| American Shorthair | |
| American Wirehair | |
| Arabian Mau | |
| Australian Mist | |
| Asian | |
| Asian Semi-longhair |
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
| | Image format (sized) | Unsized | Compr | Pixel format | Pixel type | | |
| |---------------------------------------|--------------------|-------|--------------------|-----------------------------------| | |
| | GL_R8 | GL_RED | False | GL_RED | GL_UNSIGNED_BYTE | | |
| | GL_R8_SNORM | GL_RED | False | GL_RED | GL_BYTE | | |
| | GL_R16 | GL_RED | False | GL_RED | GL_UNSIGNED_SHORT | | |
| | GL_R16_SNORM | GL_RED | False | GL_RED | GL_SHORT | | |
| | GL_R32F | GL_RED | False | GL_RED | GL_FLOAT | | |
| | GL_R8I | GL_RED | False | GL_RED_INTEGER | GL_INT | |
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
| // Copyright 2019 Google LLC. | |
| // SPDX-License-Identifier: Apache-2.0 | |
| // Polynomial approximation in GLSL for the Turbo colormap | |
| // Original LUT: https://gist.github.com/mikhailov-work/ee72ba4191942acecc03fe6da94fc73f | |
| // Authors: | |
| // Colormap Design: Anton Mikhailov (mikhailov@google.com) | |
| // GLSL Approximation: Ruofei Du (ruofei@google.com) |
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
| <!DOCTYPE html> | |
| <html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
| <style> | |
| body { | |
| background: repeat url('data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEASABIAAD/7QCIUGhvdG9zaG9wIDMuMAA4QklNBAQAAAAAAGscAVoAAxslRxwCAAACAAAcAnQAV8KpIENoYWV5b3VuZ1dpbGxOZXZlckNoYWVvbGQgLSBodHRwOi8vd3d3LnJlZGJ1YmJsZS5jb20vcGVvcGxlL0NoYWV5b3VuZ1dpbGxOZXZlckNoYWVvbAD/4gxYSUNDX1BST0ZJTEUAAQEAAAxITGlubwIQAABtbnRyUkdCIFhZWiAHzgACAAkABgAxAABhY3NwTVNGVAAAAABJRUMgc1JHQgAAAAAAAAAAAAAAAAAA9tYAAQAAAADTLUhQICAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABFjcHJ0AAABUAAAADNkZXNjAAABhAAAAGx3dHB0AAAB8AAAABRia3B0AAACBAAAABRyWFlaAAACGAAAABRnWFlaAAACLAAAABRiWFlaAAACQAAAABRkbW5kAAACVAAAAHBkbWRkAAACxAAAAIh2dWVkAAADTAAAAIZ2aWV3AAAD1AAAACRsdW1pAAAD+AAAABRtZWFzAAAEDAAAACR0ZWNoAAAEMAAAAAxyVFJDAAAEPAAACAxnVFJDAAAEPAAACAxiVFJDAAAEPAAACAx0ZXh0AAAAAENvcHlyaWdodCAoYykgMTk5OCBIZXdsZXR0LVBhY2thcmQgQ29tcGFueQAAZGVzYwAAAAAAAAASc1JHQiBJRUM2MTk2Ni0yLjEAAAAAAAAAAAAAABJzUkdCIElFQzYxOTY2LTIuMQAAAAAAAA |
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
| from collections import defaultdict | |
| def node(): | |
| return defaultdict(node) | |
| def word_exists(word, node): | |
| if not word: | |
| return None in node | |
| return word_exists(word[1:], node[word[0]) |
NewerOlder