This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
class ProgressBar: | |
progress: int = 0 | |
def __init__(self) -> None: | |
self.columns, self.lines = os.get_terminal_size() | |
def update(self, progress: int): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package brainfuck | |
func Interpreter(code string, input string) string { | |
memory := make([]int, 30000) | |
var ( | |
output string | |
pointer, inputPointer int | |
loopStack []int | |
) |