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
<?php | |
class NameValuePair | |
{ | |
/** @var string */ | |
private $name; | |
/** @var mixed */ | |
private $value; |
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
[URL] | |
Protocol=unreal | |
ProtocolDescription=Unreal Protocol | |
Name=Player | |
Map=Index.unr | |
LocalMap=CityIntro.unr | |
Host= | |
Portal= | |
MapExt=unr | |
SaveExt=usa |
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
<script type="text/jsx"> | |
var Modal = ReactBootstrap.Modal; | |
var ModalTrigger = ReactBootstrap.ModalTrigger; | |
var OverlayMixin = ReactBootstrap.OverlayMixin; | |
var Button = ReactBootstrap.Button; | |
var RefinableContent = React.createClass({ | |
render: function () { |
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
<?php | |
namespace App; | |
class CsvFile { | |
protected $closure; | |
protected $filename; | |
protected $skipHeadings = false; |
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
<?php | |
class DrawException extends DomainException {} | |
abstract class Hand { | |
public function beats(Hand $hand) { | |
$this->rejectDraw($hand); | |
return $this->assess($hand); |
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
<?php | |
class SentenceCorector { | |
protected $originalSentence = null; | |
protected $correctedSentance = null; | |
protected $corrections = 0; | |
public function corect($sentence) { |
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
<?php | |
class DrawException extends DomainException {} | |
abstract class Hand { | |
public function beats(Hand $hand) { | |
$this->rejectDraw($hand); | |
$this->assess($hand); |
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
<?php | |
$pieces = ['r' => 'Rock', 'p' => 'Paper', 's' => 'Scissors']; | |
$stack = [[['p','r'],'p'],[['r','s'],'r'],[['s','p'],'s']]; | |
$takes = 5; | |
function request_player_piece() { | |
global $pieces; | |
echo "\nChoose piece: "; | |
$playerPiece = strtolower(trim(fgets(STDIN))); |