Skip to content

Instantly share code, notes, and snippets.

View Tagar's full-sized avatar
🗻

Ruslan Dautkhanov Tagar

🗻
  • Denver, CO
  • 11:19 (UTC -06:00)
View GitHub Profile
@Tagar
Tagar / pprint_color.py
Created November 15, 2019 04:36 — forked from EdwardBetts/pprint_color.py
Python pprint with color syntax highlighting for the console
from pygments import highlight
from pygments.lexers import PythonLexer
from pygments.formatters import Terminal256Formatter
from pprint import pformat
def pprint_color(obj):
print highlight(pformat(obj), PythonLexer(), Terminal256Formatter())
@Tagar
Tagar / .screenrc-main-example
Last active August 15, 2016 20:25 — forked from ChrisWills/.screenrc-main-example
A nice default screenrc
# GNU Screen - main configuration file
# All other .screenrc files will source this file to inherit settings.
# Author: Christian Wills - cwills.sys@gmail.com
# Allow bold colors - necessary for some reason
attrcolor b ".I"
# Tell screen how to set colors. AB = background, AF=foreground
termcapinfo xterm 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm'