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 / Google Maps to Waze.js
Created October 19, 2026 06:49
Google Maps place links to exact Waze coordinates (Scriptable source and setup)
// Scriptable script. Input: one Google Maps URL as the Shortcuts "Parameter".
// Output: a waze:// URL, or an ERROR: message. No place-name fallback.
function fail(message) { throw new Error(message); }
function firstURL(value) {
const match = String(value || "").match(/https?:\/\/[^\s<>"']+/i);
if (!match) fail("Provide a Google Maps URL.");
return match[0].replace(/[),.;]+$/, "");
}
@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 January 22, 2025 20:18
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