- First install the python3 using homebrew
$ uname -a
Darwin apple 15.5.0 Darwin Kernel Version 15.5.0: Tue Apr 19 18:36:36 PDT 2016; root:xnu-3248.50.21~8/RELEASE_X86_64 x86_64
$ brew install python3| %%%----------------------------------------------------------------------------- | |
| %%% @author Sampath Singamsetty <> | |
| %%% @copyright (C) 2017, Sampath Singamsetty | |
| %%% @doc Check if a string or sentence is a palindrome. | |
| %%% Define a function palindrome, that returns true or false depending on | |
| %%% whether the list is a palindrome - the same when read right to left | |
| %%% as when read left to right. | |
| %%% @end | |
| %%% Created : 06 Mar 2017 by Sampath Singamsetty <> | |
| %%%----------------------------------------------------------------------------- |
| %%%----------------------------------------------------------------------------- | |
| %%% @author Sampath Singamsetty <> | |
| %%% @copyright (C) 2017, Sampath Singamsetty | |
| %%% @doc | |
| %%% | |
| %%% @end | |
| %%% Created : 05 Mar 2017 by Sampath Singamsetty <> | |
| %%%----------------------------------------------------------------------------- | |
| -module(nub). | |
| -include_lib("eunit/include/eunit.hrl"). |
| %%%----------------------------------------------------------------------------- | |
| %%% @author Sampath Singamsetty <> | |
| %%% @copyright (C) 2017, Sampath Singamsetty | |
| %%% @doc Week2 exercises | |
| %%% https://www.futurelearn.com/courses/functional-programming-erlang/1/steps/155134 | |
| %%% @end | |
| %%% Created : 04 Mar 2017 by Sampath Singamsetty <> | |
| %%%----------------------------------------------------------------------------- | |
| -module(week2). | |
| -include_lib("eunit/include/eunit.hrl"). |
| %%%----------------------------------------------------------------------------- | |
| %%% @author Sampath Singamsetty <> | |
| %%% @copyright (C) 2017, Sampath Singamsetty | |
| %%% @doc Week1 exercises | |
| %%% www.futurelearn.com/courses/functional-programming-erlang | |
| %%% @end | |
| %%% Created : 23 Feb 2017 by Sampath Singamsetty <> | |
| %%%----------------------------------------------------------------------------- | |
| -module(week1). | |
| -export([fib/1, pieces/1]). |
| %%%------------------------------------------------------------------- | |
| %%% @author Fernando Benavides <[email protected]> | |
| %%% @copyright (C) 2011 Inaka Networks S.R.L. | |
| %%% @doc It listens and just repeats... | |
| %%% @end | |
| %%%------------------------------------------------------------------- | |
| -module(gen_event_repeater). | |
| -author('Fernando Benavides <[email protected]>'). | |
| -behaviour(gen_event). |