This file contains 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
Model/Sponsor.php | |
class Sponsor extends AppModel { | |
public $name = 'Sponsor'; | |
public $useTable = 'Sponsors'; | |
public $displayField = 'Sponsor'; | |
public $primaryKey = 'SponsorID'; | |
public $hasMany = array( | |
'SponsorDivision' => array( | |
'className' => 'SponsorDivision', | |
'foreignKey' => 'SponsorID', |
This file contains 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(caesar). | |
-export[cipher/2]. | |
cipher(L, Shift) when is_list(L), is_integer(Shift), Shift =< 25, Shift >= -25 -> | |
%% Anonymous function with guards. | |
%% Strings are lists of numbers in Erlang [97,98,99] = [$a,$b,$c] = "abc" | |
%% We evaluat X and add it's shifted value to the head of the accumulator list Acc. |
This file contains 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
INTRO and INSTALLATION | |
git clone git://github.com/basho/webmachine.git | |
cd webmachine | |
make | |
./scripts/new_webmachine.sh gwebdev ../ |