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
| /* | |
| # StarWar Challenge | |
| ## Summary: | |
| The Sith have sent Lord Malice to find the last standing Jedi temple on an unknown planet. | |
| We need to find what planet it is on before he does. | |
| ## Intel: |
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
| function standardDeviation(values) { | |
| var avg = average(values); | |
| var squareDiffs = values.map(function (value) { | |
| var diff = value - avg; | |
| var sqrDiff = diff * diff; | |
| return sqrDiff; | |
| }); |
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
| <?php | |
| class ApplicationEngine | |
| { | |
| /** | |
| * @var InterpreterInterface[] | |
| */ | |
| private $interpreters = []; |
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
| <?php | |
| interface BackupPowerDelegateInteface | |
| public function successTurnonPowerBackup(); | |
| public function successTurnonPowerBackup(); | |
| } |
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
| <?php | |
| class OfficeDelegation implement BackupPowerDelegateInteface, PrinterDelegateInterface | |
| { | |
| public function duringOfficeLogic() | |
| { | |
| if($this->powerIsOff()){ | |
| $backupPower = new BackupPowerHandler(); | |
| $backupPower->setDelegate($this); |
NewerOlder