Skip to content

Instantly share code, notes, and snippets.

View eloonstra's full-sized avatar
💤

Elena Loonstra eloonstra

💤
View GitHub Profile
@eloonstra
eloonstra / progress_bar.py
Last active March 25, 2022 17:12
A simple progress bar class written in Python.
import os
class ProgressBar:
progress: int = 0
def __init__(self) -> None:
self.columns, self.lines = os.get_terminal_size()
def update(self, progress: int):
@eloonstra
eloonstra / brainfuck.go
Created December 11, 2021 13:24
A simple brainfuck interpreter.
package brainfuck
func Interpreter(code string, input string) string {
memory := make([]int, 30000)
var (
output string
pointer, inputPointer int
loopStack []int
)