Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,6 @@
|
|||
%% Implemented by Arjun Sunel
|
||||
-module(three_d).
|
||||
-export([main/0]).
|
||||
|
||||
main() ->
|
||||
io:format(" _____ _ \n| ___| | | \n| |__ _ __| | __ _ _ __ __ _ \n| __| '__| |/ _` | '_ \\ / _` |\n| |__| | | | (_| | | | | (_| |\n|____/_| |_|\\__,_|_| |_|\\__, |\n __/ |\n |___/\n").
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
-module(ascii3d).
|
||||
-export([decode/1]).
|
||||
|
||||
decode(Str) ->
|
||||
Splited = re:split(Str, "(\\d+)(\\D+)", [{return,list},group,trim]),
|
||||
Fun = fun([_,N,S]) -> {Num,_} = string:to_integer(N), lists:duplicate(Num, S) end,
|
||||
Joined = string:join(lists:flatmap(Fun, Splited), ""),
|
||||
Lines = binary:replace(binary:list_to_bin(Joined), <<"B">>, <<"\\">>, [global]),
|
||||
io:format("~s~n", [Lines]).
|
||||
Loading…
Add table
Add a link
Reference in a new issue