Skip to content

Instantly share code, notes, and snippets.

View AnthonyBriggs's full-sized avatar

Anthony Briggs AnthonyBriggs

  • Melbourne, Australia
View GitHub Profile
@AnthonyBriggs
AnthonyBriggs / alien.py
Created October 8, 2018 03:33
Script that can create a PygameZero executable with Pyinstaller
"""
Mostly-working pyinstaller hack to get a PyGame zero executable
All data files included, and --onefile will compress everything down to ~15MB
Note that Pyinstaller moves everything to an internal directory, sys._MEIPASS,
and runs from that, so we have to explicitly use that path when loading the
game file.
@AnthonyBriggs
AnthonyBriggs / project_names.py
Last active November 3, 2024 23:48
Project codename generator
#!/usr/bin/env python3
"""
Project naming scheme (roughly; funny trumps the rules):
<weird/funny animal> + <word which should be rude but isn't>
Useful if management / fellow developers are taking themselves too seriously."""
import random
directive = """ENGAGE COMMENCE EXECUTE DEPLOY BEGIN ACTIVATE INITIATE SECURE UNDERTAKE LAUNCH """.split()