Skip to content

Instantly share code, notes, and snippets.

View thexa4's full-sized avatar

Max Maton thexa4

  • Delft, Netherlands
View GitHub Profile
#!/usr/bin/env python3
import pyvo
import requests
import sqlite3
from datetime import datetime
service_name = "Gaia@AIP"
url = "https://gaia.aip.de/tap"
token = ''
@thexa4
thexa4 / elevator.js
Last active August 15, 2025 21:03
Idle managers
// https://play.elevatorsaga.com
class Manager {
constructor(elevators, floors) {
this.elevators = elevators
this.floors = floors
var obj = this
var id = 0
for(var e of elevators) {
#!/usr/bin/env python3
# Copyright (c) 2026 Max Maton
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#