Skip to content

Instantly share code, notes, and snippets.

@dland
dland / unicode
Created November 27, 2013 15:49
Fun with Unicode
#! /usr/bin/perl -l
use strict;
use utf8;
use open qw( :encoding(UTF-8) :std );
use charnames qw( :full :short );
my $word = "no\N{LATIN SMALL LETTER E WITH DIAERESIS}l";
my $combine = "noe\N{COMBINING DIAERESIS}l";
@dland
dland / gist:69e656e8fabc93187bee
Created October 18, 2015 20:47
Elixir playground, pt 1
Given the module:
import Enum
defmodule D do
def transpose(t) do
map(0..count(at(t, 0))-1, fn(x) -> map(t, fn(y) -> at(y, x) end) end)
end
end