Skip to content

Instantly share code, notes, and snippets.

View LyricLy's full-sized avatar
❤️

Christina Hanson LyricLy

❤️
View GitHub Profile
@LyricLy
LyricLy / dpy_citizenship_test.txt
Created January 26, 2022 18:00
dpy citizenship test
accum
accumb
accumbency
accumbent
accumber
accumulable
accumulate
accumulated
accumulates
accumulating
@LyricLy
LyricLy / tutorial.md
Last active February 2, 2021 07:22
Mindbreak tutorial (well, part of it)

Welcome to the Mindbreak tutorial! This document is up-to-date as of Mindbreak v0.1.0-alpha.

Mindbreak is a high-level programming language that transpiles to perhaps the most famous esolang ever, Brainfuck. Development began in 2020, inspired by the CFuck and byfon projects (which I also worked on). Somewhat unlike the previous two projects, Mindbreak is focused on a welcoming, high-level design that abstracts away a majority of Brainfuck's concepts.

The purpose of this tutorial is to introduce all of Mindbreak's core concepts in a simple, easy to follow manner through examples. It'll also act as the language's specification, at least until a reference implementation or formal specification is written. By the end, you'll hopefully be able to write your own Mindbreak programs with confidence.

This tutorial assumes prior experience with programming.

@LyricLy
LyricLy / bf2rui.py
Created July 26, 2020 09:13
Convert Brainfuck code (bigints, unsigned, saturating when going below 0) to Rui code that runs in drui.c.
# Convert Brainfuck code written for saturating unsigned bigint cells into Rui code.
# Targets the Rui variant implemented by drui.c, using R and W for ASCII I/O.
import sys
import re
from textwrap import dedent as _
SIZE = 9999
import time
from collections import defaultdict
class Entity:
def __init__(self, value):
self.value = value
self.pos = 0
self.vel = value
@LyricLy
LyricLy / docs.md
Last active August 9, 2023 00:21
Docs for Foopy.

Welcome to the Foopy tutorial!

Foopy is a functional object-oriented programming language, which means it has many of the properties from both FP and OOP.

These include:

  • No side-effects
  • Everything is an object (except functions, macros and parsers)
  • Expressions are memoized
  • Functions and classes cannot be redefined
  • Objects cannot be mutated
@LyricLy
LyricLy / bruteforce.py
Created May 15, 2018 09:53
Brute force Kolmogorov complexity for The Insane Esolang
bound = lambda m: m if 0 <= m <= 255 else (bound(m + 256) if m < 0 else bound(m - 256))
alphabet = "26LHG15DZ83OCTNS9 KIFPVUJEB7W0MAQ4XYR"
value = 45
code = ""
value = bound(value)
def do_i(code, value):
value += 4
value *= 5
+++++++++[>+++++++++++<-]>++++++.<>++++.<>+++.<>-.<>+++.<>++.<++++++++[>----------<-]>----.<+++++++[>+++++++++<-]>++++.<+++[>++++<-]>.<>---.<>-------.<>--.<+++[>+++++<-]>++.<++[>----<-]>---.<>++++++.<>-.<>+++++.<+++++++++[>-----------<-]>------.<+++++++++[>++++++++++<-]>+++++.<>++++.<>+++.<>-.<>+++.<>++.<++++++++[>----------<-]>----.<+++++++[>+++++++++<-]>+++++.<>---.<+++[>+++++<-]>++++.<+++[>----<-]>---.<+++[>++++<-]>+++.<++[>----<-]>---.<>++++.<>--------.<+++++++++[>----------<-]>-.<+++++++++[>++++++++++<-]>+++++.<>++++.<>+++.<>-.<>+++.<>++.<++++++++[>----------<-]>----.<++++++++[>+++++++++<-]>+++++.<+++[>----<-]>.<+++[>+++++<-]>++++.<+++[>----<-]>.<+++++++++[>----------<-]>----.<+++++++++[>++++++++++<-]>+++++.<>++++.<>+++.<>-.<>+++.<>++.<++++++++[>----------<-]>----.<++++++++[>++++++++++<-]>+++.<>++.<+++[>-----<-]>----.<+++[>++++<-]>++.<>++.<>---.<+++[>----<-]>.<>++.<+++[>++++<-]>++.<+++++++++[>-----------<-]>------.<+++++++++[>++++++++++<-]>+++++.<>++++.<>+++.<>-.<>+++.<>++.<++++++++[>----------<-]>----.<
@LyricLy
LyricLy / dev.py
Last active June 2, 2017 05:36
You seem to be in...
import discord
from discord.ext import commands
"""You seem to be in (insert channel name) meme from Nintendo Homebrew."""
class DevMeme:
def __init__(self, bot):
self.bot = bot
@commands.command(pass_context=True)