Skip to content

Instantly share code, notes, and snippets.

View conqp's full-sized avatar
🦀
תאמין שיש בך עוצמה לשנות

Richard Neumann conqp

🦀
תאמין שיש בך עוצמה לשנות
View GitHub Profile
@conqp
conqp / color_code.py
Created November 3, 2022 10:37
Encode arbitrary strings with ANSI background coloring
#! /usr/bin/env python3
"""Encode arbitrary strings with ANSI background coloring."""
from argparse import ArgumentParser, Namespace
from sys import stdin, stdout
RESET = '\x1b[0m'