Skip to content

Instantly share code, notes, and snippets.

View zamai's full-sized avatar
🔮
golang

Alex Zamai zamai

🔮
golang
View GitHub Profile
@zamai
zamai / workflow.sh
Created March 4, 2024 04:28
convert photos jpeg to heic, using sips in Automator for quick action
quality_level="90" # Set quality to 90%
for f in "$@"
do
echo "Processing $f"
# Define the output filename by changing the extension to .heic
output_file="${f%.*}.heic"
# Convert JPEG to HEIC with specified quality using sips
@zamai
zamai / superblocks.py
Created February 27, 2024 07:36
SUPER BLOCKS GilKER puzzle solver
import numpy as np
YELLOW = 'yellow'
BLUE = 'blue'
RED = 'red'
GREEN = 'green'
# ANSI color codes
COLOR_CODES = {
YELLOW: '\033[93m', # Light yellow
@zamai
zamai / NATIONALITIES.py
Last active February 1, 2024 00:03
List of nationalities in python list and tuple format
#List of *hopefuly* all nationalities in list an tuple format for each python copy/paste
NATIONALITIES_tuple = ('Afghan', 'Albanian', 'Algerian', 'American', 'Andorran', 'Angolan', 'Antiguans', 'Argentinean', 'Armenian', 'Australian', 'Austrian', 'Azerbaijani', 'Bahamian', 'Bahraini', 'Bangladeshi', 'Barbadian', 'Barbudans', 'Batswana', 'Belarusian', 'Belgian', 'Belizean', 'Beninese', 'Bhutanese', 'Bolivian', 'Bosnian', 'Brazilian', 'British', 'Bruneian', 'Bulgarian', 'Burkinabe', 'Burmese', 'Burundian', 'Cambodian', 'Cameroonian', 'Canadian', 'Cape Verdean', 'Central African', 'Chadian', 'Chilean', 'Chinese', 'Colombian', 'Comoran', 'Congolese', 'Costa Rican', 'Croatian', 'Cuban', 'Cypriot', 'Czech', 'Danish', 'Djibouti', 'Dominican', 'Dutch', 'Dutchman', 'Dutchwoman', 'East Timorese', 'Ecuadorean', 'Egyptian', 'Emirian', 'Equatorial Guinean', 'Eritrean', 'Estonian', 'Ethiopian', 'Fijian', 'Filipino', 'Finnish', 'French', 'Gabonese', 'Gambian', 'Georgian', 'German', 'Ghanaian', 'Greek', 'Grenadian', 'Guate