Skip to content

Instantly share code, notes, and snippets.

View bjartur's full-sized avatar

Bjartur Thorlacius bjartur

View GitHub Profile
@bjartur
bjartur / Braille.lhs
Last active October 26, 2019 12:19
Encode a ByteString to a braille string. Feel each bit in a textualization of an octet stream more compact than a hexdump.
This module exports functions for encoding lazy bytestrings as
lazy Unicode bytestrings of braille letters. Each braille letter
corresponds to one byte (octet) in such a way that each dot corresponds
to one input bit. The dots are arranged in two columns so that
the four least significant bits, correspond to dots in the left column,
a nd each dot correspond to a more significant bit than the dot above.
Five encodings of Unicode are implemented below,
UTF-8, which is invariant under endianness,
UTF-16, in little-endian and big-endian varieties, and
equivalently, UCS-2, in little-endian and big-endian varieties.

Lög Pírata

1. Heiti

  1. Nafn félagsins er Píratar. Aðsetur þess og varnarþing skal vera í Reykjavík.

  2. Ensk þýðing á heiti félagsins er Pirate Party Iceland. Nota má hana sem hjáheiti.