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
add_newline = true | |
palette = "colors" | |
format = """ | |
$time\ | |
([](bg:red fg:prev_bg)[$status](fg:white bg:red))\ | |
([](bg:blue fg:prev_bg)$directory)\ | |
([](bg:red fg:prev_bg)$git_branch$git_state$git_status)\ | |
([](bg:yellow fg:prev_bg)$python$nodejs$rust$golang$php)\ | |
[](bg:none fg:prev_bg)\ | |
$cmd_duration\ |
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
#!/usr/bin/env python3 | |
import sys | |
from collections import defaultdict | |
class AbstractInterpreter: | |
""" | |
This is a very basic Brainfuck interpreter | |
""" |
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
#!/usr/bin/env python3 | |
""" | |
A script inspired by Vsauce2's video: "The Demonetization Game" | |
https://www.youtube.com/watch?v=kOnEEeHZp94 | |
""" | |
import random | |
from typing import List, Tuple | |
from dataclasses import dataclass |