Skip to content

Instantly share code, notes, and snippets.

View xobust's full-sized avatar
🎯
Focusing on improving

Alexander WB xobust

🎯
Focusing on improving
  • Challengermode
  • Stockholm, Sweden
View GitHub Profile
@xobust
xobust / cstv_broadcast_resend_test_server.py
Created March 20, 2024 15:15
Test server that verifies that the CSTV broadcast resends in case of server errors
from flask import Flask, request
import time
app = Flask(__name__)
# This dictionary will store the paths that have been requested.
requested_paths = {}
@app.route('/', defaults={'path': ''}, methods=['GET', 'POST'])
@app.route('/<path:path>', methods=['GET', 'POST'])
@xobust
xobust / Betygssnitt.py
Created December 3, 2017 23:16
Beräknar snittet av betygen från antagnig.se https://www.antagning.se/se/mypages/credentials
"""
Klistra in värdet från tabellen på https://www.antagning.se/se/mypages/credential
inom trippel citat tecknen härunder
Ställ in dit meritvärdet och kör programmet
"""
text = """Biologi 1 BIOBIO01 B 100
Datorteknik 1a DAODAT01A A 100
Digitalt skapande 1 DIGDIG01 A 100
Engelska 5 ENGENG05 A 100
Engelska 6 ENGENG06 A 100
@xobust
xobust / Booking.py
Created November 30, 2013 14:02
My final piece of code, in the beginers programing cource att my local "gymnasium". Definitly not my finest work i never liked the tk way of doing things, and i used it the first time when i was 12 and now i am 17. The program is a simple hotel booking gui that simply saves the info you select into a txt file.
#encoding: Utf8
#^^ Utf8 kodning gör så att aplikationene funkar för
# de flästa språk och teknen.
from Tkinter import * #Bibliotek för grafiskt användar grännsnit
from tkMessageBox import* #bibliotek för popup rutor
"""
Alexander Bladh 2013-30/11