Skip to content

Instantly share code, notes, and snippets.

View GiwbyAlbatross's full-sized avatar

Giwby Albatross GiwbyAlbatross

  • Naarm, Australia
View GitHub Profile
@GiwbyAlbatross
GiwbyAlbatross / algorithm1.py
Last active August 7, 2025 23:57
Some algorithm thing
import sys
HELP = """
python3 algorithm1.py -h
show this very help page
python3 algorithm1.py
work out what's special about 495
python3 algorithm1.py <number>
run the algorithm on <number>
"""
@GiwbyAlbatross
GiwbyAlbatross / scons-output.log
Created July 11, 2025 02:03
Scons output when compiling godot 2.0-stable using `scons platform=x11 | tee scons-output.log`
scons: Reading SConscript files ...
Enabling ALSA
Enabling PulseAudio
YASM is necessary for WebM SIMD optimizations.
WebM SIMD optimizations are disabled. Check if your CPU architecture, CPU bits or platform are supported!
Checking for C header file mntent.h... yes
scons: done reading SConscript files.
scons: Building targets ...
run(["core/method_bind.gen.inc", "core/method_bind_ext.gen.inc"], ["core/make_binders.py"])
Compiling ==> platform/x11/godot_x11.cpp
@GiwbyAlbatross
GiwbyAlbatross / paint.py
Last active April 10, 2025 00:33
paint.py - a pygame-based, minimalist, alternative to Microsoft Paint
import os
import time
import pygame
from pygame.locals import *
pygame.init()
scr_w = 500
scr_h = 500
@GiwbyAlbatross
GiwbyAlbatross / screamcipher.py
Last active March 30, 2025 08:41
This is a modified version of the xkcd scream cipher https://xkcd.com/3054
"xkcd scream cipher implementation"
import string
As = ['\u0041', '\u00c0', '\u00c1', '\u00c2', '\u00c3', '\u00c4', '\u00c5', '\u0100', '\u0102', '\u0104', '\u01cd', '\u01de', '\u01e0', '\u01fa', '\u0200', '\u0202',
'\u0226', '\u023a', '\u1e00', '\u1ea0', '\u1ea2', '\u1ea4', '\u1ea6', '\u1ea8', '\u1eaa', '\u1eac', '\u1eae', '\u1eb0', '\u1eb2', '\u1eb4', '\u1eb6'
]
letters = [c for c in ',.()-'] + [c for c in string.ascii_lowercase]
def encrypt(s: str) -> str:
r = ''