Skip to content

Instantly share code, notes, and snippets.

View tkovs's full-sized avatar
🤜
🤛

tkovs tkovs

🤜
🤛
View GitHub Profile
@tkovs
tkovs / colortrans.py
Created August 2, 2016 18:32 — forked from MicahElliott/colortrans.py
Convert values between RGB hex codes and xterm-256 color codes.
#! /usr/bin/env python
""" Convert values between RGB hex codes and xterm-256 color codes.
Nice long listing of all 256 colors and their codes. Useful for
developing console color themes, or even script output schemes.
Resources:
* http://en.wikipedia.org/wiki/8-bit_color
* http://en.wikipedia.org/wiki/ANSI_escape_code
@tkovs
tkovs / Mortivacional.hs
Last active August 29, 2015 14:27 — forked from haskellcamargo/Mortivacional.hs
Mortivacional.hs
module Mortivacional where
import System.Console.ANSI
drawLine :: IO ()
drawLine = putStrLn $ replicate 23 '-'
turnRed :: IO ()
turnRed = setSGR [ SetConsoleIntensity BoldIntensity
, SetColor Foreground Vivid Red
]
@tkovs
tkovs / DocLinks.md
Last active August 29, 2015 14:17 — forked from marcoonroad/DocLinks.md