Skip to content

Instantly share code, notes, and snippets.

View julienc91's full-sized avatar
🐧

Julien Chaumont julienc91

🐧
View GitHub Profile
@julienc91
julienc91 / starship.toml
Last active October 16, 2024 19:03
starship.toml
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\
@julienc91
julienc91 / brainfuck.py
Created June 1, 2020 17:58
A Brainfuck/Ook/Spoon interpreter in python
#!/usr/bin/env python3
import sys
from collections import defaultdict
class AbstractInterpreter:
"""
This is a very basic Brainfuck interpreter
"""
@julienc91
julienc91 / demonetization_game.py
Created May 14, 2019 20:16
The Demonetization Game
#!/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