Skip to content

Instantly share code, notes, and snippets.

View KDMcMullan's full-sized avatar
💭
I know it's only 1's and 0's, but the software doesn't write itself.

KDM KDMcMullan

💭
I know it's only 1's and 0's, but the software doesn't write itself.
View GitHub Profile
@mdonkers
mdonkers / server.py
Last active July 4, 2026 15:59
Simple Python 3 HTTP server for logging all GET and POST requests
#!/usr/bin/env python3
"""
License: MIT License
Copyright (c) 2023 Miel Donkers
Very simple HTTP server in python for logging requests
Usage::
./server.py [<port>]
"""
from http.server import BaseHTTPRequestHandler, HTTPServer
@claymcleod
claymcleod / pycurses.py
Last active July 31, 2026 02:38
Python curses example
import sys,os
import curses
def draw_menu(stdscr):
k = 0
cursor_x = 0
cursor_y = 0
# Clear and refresh the screen for a blank canvas
stdscr.clear()