This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| %%%------------------------------------------------------------------- | |
| %%% @author Duncan Paul Attard | |
| %%% @copyright (C) 2019 Duncan Paul Attard | |
| %%% @version 0.9 | |
| %%% | |
| %%% @doc Generic looper behavior. | |
| %%% | |
| %%% @end | |
| %%% Created: 18. Sep 2019 | |
| %%% |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| tap 'caskroom/cask' | |
| tap 'caskroom/fonts' | |
| # Install utility software. | |
| brew 'git' | |
| brew 'wget' | |
| cask 'dropbox' | |
| cask 'virtualbox' | |
| cask 'virtualbox-extension-pack' | |
| cask 'google-chrome' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| %% Based on code from | |
| %% Erlang Programming | |
| %% Francecso Cesarini and Simon Thompson | |
| %% O'Reilly, 2008 | |
| %% http://oreilly.com/catalog/9780596518189/ | |
| %% http://www.erlangprogramming.org/ | |
| %% (c) Francesco Cesarini and Simon Thompson | |
| -module(frequency_sup). | |
| -export([start/0,allocate/0,deallocate/1,stop/0,client/3,start_client/1]). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| %% Based on code from | |
| %% Erlang Programming | |
| %% Francecso Cesarini and Simon Thompson | |
| %% O'Reilly, 2008 | |
| %% http://oreilly.com/catalog/9780596518189/ | |
| %% http://www.erlangprogramming.org/ | |
| %% (c) Francesco Cesarini and Simon Thompson | |
| -module(frequency2). | |
| -export([start/0,allocate/0,deallocate/1,stop/0,clear/0]). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -module(ass_wk2). | |
| -export([get_file_contents/1,show_file_contents/1]). | |
| -export ([reverse/1, join/2]). | |
| -export ([de_capitalize/1, tokenize/1]). | |
| -export ([process_lines/1, tag_tokens/2, index/1, index_word/2, index_words/1, compress_index/1]). | |
| % Used to read a file into a list of lines. | |
| % Example files available in: | |
| % gettysburg-address.txt (short) | |
| % dickens-christmas.txt (long) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -module (ass_wk1). | |
| -export ([area/1, perimeter/1, enclose/1, bits/1, bits_tail/1]). | |
| %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
| %% Question 1 - Shapes. %% | |
| %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
| % I'm assuming three shapes: circles, rectangles and squares. | |
| %% Perimeter of circle is calulated using the standard formula 2 * Pi * R. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| % Include EUnit. | |
| -include_lib("eunit/include/eunit.hrl"). | |
| %% Tests the mHML compiler. | |
| mHml_test_() -> {foreachx, | |
| fun(StartupDataPassedFromEachUnitTest) -> | |
| % Setup computaiton. Return value is passed as a parameter to each | |
| % unit test. | |
| end, |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.