Think different(ly)
Get out of your rut and learn new ways to think.
| # -------------------------------------------------------------------------------------------- | |
| # Mostly Erlang - episode 019 Elixir With José Valim / October 7, 2013 | |
| # | |
| # guests: | |
| # - Joe Armstrong (@joeerl) | |
| # - Robert Virding (@rvirding) | |
| # - Jose Valim (@josevalim) | |
| # - Fred Hebert (@mononcqc) | |
| # - Eric Merit (@ericbmerritt) | |
| # |
| defmodule Mergesort do | |
| @moduledoc """ | |
| Documentation for `Mergesort`. | |
| Source: https://gist.github.com/coproduto/1c833523680628cd25884e047e64bd7b | |
| """ | |
| @doc """ | |
| Sorts a list. |
| -module (base64ex). | |
| -export ([urlsafe_decode64/1, urlsafe_encode64/1]). | |
| urlsafe_decode64(Str) -> | |
| Str2 = re:replace(Str, "-", "+", [global, {return,list}]), | |
| Str3 = re:replace(Str2, "_", "/", [global, {return,list}]), | |
| base64:decode(Str3). | |
| urlsafe_encode64(Bin) -> |