Skip to content

Instantly share code, notes, and snippets.

View shiroginne's full-sized avatar
:octocat:

Yauheni Suhakou shiroginne

:octocat:
View GitHub Profile
@shiroginne
shiroginne / lolcat.hs
Created December 5, 2011 09:56 — forked from lest/lolcat.hs
simple lolcat powered by haskell
import Data.Word
freq = 0.3
spread = 8.0
unbase :: Integral int => int -> Word8 -> Word8 -> Word8 -> int
unbase base r g b = (fi r*base+fi g)*base+fi b
where fi = fromIntegral
-- | Approximate a 24-bit Rgb colour with a colour in the xterm256 6x6x6 colour cube, returning its index.
@shiroginne
shiroginne / gist:1437994
Created December 6, 2011 12:16 — forked from avalanche123/gist:981817
GitHub Emoji
:+1:
:-1:
:airplane:
:art:
:bear:
:beer:
:bike:
:bomb:
:book:
:bulb: