Skip to content

Instantly share code, notes, and snippets.

View cpressey's full-sized avatar
🚚
Moved to codeberg.org/cpressey

Chris Pressey cpressey

🚚
Moved to codeberg.org/cpressey
View GitHub Profile
@cpressey
cpressey / Fizzy Drinks.txt
Created April 8, 2015 11:56
Fizzy Drinks
i had;
was a on the of the in the;
upon the
of his,
in his i could he had!
with a,
began to!
and i i was and the the squire
he was.
by the said the
@cpressey
cpressey / Expensive Shoes.txt
Last active August 29, 2015 14:18
Expensive Shoes
BUT HENCE ----- you'll need
++++ you'll say -----
---- SO HENCE they'll have
+++++ --- +
--- i'll have +
AND THEN +++ ++++
----- ++ ----
- BUT NOW AND NOW
++ - --
++ ---- SO NOW
@cpressey
cpressey / tube-quine.py
Last active August 29, 2015 14:18
A Python quine written in haste while travelling on the London Underground (and susbequent devolution, which did not occur while on public transport)
# prelude
a = """# prelude"""
b = """# remainder
print a
print 'a = ""' + '"' + a + '""' + '"'
print 'b = ""' + '"' + b + '""' + '"'
print b
"""
# remainder
print a
@cpressey
cpressey / glitchtool.py
Created April 28, 2015 19:19
Really quick-and-dirty Python script to create glitched (intentionally corrupted) JPEGs
#!/usr/bin/env python
# the contents of this file are in the public domain
import os
import random
import sys
def main(args):
filename = args[0]
@cpressey
cpressey / Overview of a Story Compiler.md
Last active August 3, 2023 06:18
Overview of a "Story Compiler"
@cpressey
cpressey / Text Adventures of Note.md
Last active December 10, 2023 13:54
Text Adventures of Note (draft)
@cpressey
cpressey / latcarf.js.md
Last active December 10, 2023 13:55
Creating a recursive fractal bottom-up
@cpressey
cpressey / defeat.jl
Created November 22, 2018 12:04
The Defeat at Procyon V (for NaNoGenMo 2018)
#
# "The Defeat at Procyon V"
# Chris Pressey, Cat's Eye Technologies
# for NaNoGenMo 2018
#
#
# General Utility
#
@cpressey
cpressey / Odd.hs
Last active July 26, 2019 12:12
Odd.hs
-- implementation of https://esolangs.org/wiki/An_Odd_Rewriting_System
-- I, Chris Pressey, hereby place this source code into the public domain.
import Data.Char
-- A program in An Odd Rewriting System consists an alphabet of symbols,
-- each of which belongs to one of two categories (an odd symbol or an even symbol),
-- except for a special halt symbol that appears in neither category;
-- two definitions for each symbol (an odd definition and an even definition);
-- and an initial string. Both the initial string, and each definition, is simply a
@cpressey
cpressey / Wagon.md
Last active December 10, 2023 13:50
Wagon.md