This file contains 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/bash | |
################################################################################ | |
# | |
# Description: | |
# Convert images for compatibility with the Supernote A6X and A5X. | |
# | |
# If an original image's size exceeds the ratio required to be compatible | |
# with the Supernote, it will automatically be centered and cropped. | |
# | |
# Usage: |
This file contains 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
"""Advent of Code 2022: Day 1""" | |
def get_input(path): | |
with open(path) as i: | |
return i.read() | |
def get_input_lines(path): | |
i = get_input(path) |
This file contains 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
"""Override of Django's squashmigrations management command to allow improved optimization (with increased risk!!!) | |
# Source | |
Copied from the squashmigrations management command in Django 4.2.x: | |
https://github.com/django/django/blob/c5d196a6/django/core/management/commands/squashmigrations.py | |
# Use | |
The `--force-defer` option triggers the new behavior: | |
`python manage.py mysquashmigrations --force-defer` |
OlderNewer