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 MyNamespace; | |
/** | |
* Dependency injection container | |
*/ | |
class Container extends \Pimple\Container | |
{ | |
/** |
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
sed -E 's/\\n/\n/g' |
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
/** | |
* Returns an array of control points for use with Imagick::distortImage | |
* | |
* Offset floats describe the proportions between 0.0 and 1.0 to move the | |
* given anchor point toward the opposite corner of the image. For example, | |
* an image of size 100x100. $topLeftOffsetX = .2, $topLeftOffsetY = .5 | |
* will move the top left corner down and right from (0,0) to (20,50). | |
* $bottomRightOffsetX = .2, $bottomRightOffsetY will move the bottom right | |
* corner up and left from (100,100) to (80,50). | |
* |
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 Responder | |
{ | |
/** | |
* @param int $statusCode | |
* @param array $headers | |
* @param string|callable $body | |
*/ | |
public function respond($statusCode, $headers = null, $body = "") |
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
/equipset Mistweaver | |
/run SetActiveSpecGroup(2); | |
/run ShowHelm(1); |
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 | |
/* | |
* Use these methods to create automatic properties. When a property would be accessed, | |
* PHP will look for a function prefixed with get, set, isset, or unset followed by | |
* the property name with the first name capitalized. For example, the $this->name | |
* would be accessed as getName(), setName(), issetName(), and unsetName(). | |
*/ | |
/** |
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 | |
/** | |
* Merge an associative array into a string template. | |
* | |
* @param string $template | |
* @param array $mergeFields | |
* @return string | |
*/ | |
function stringFromTemplate($template, $mergeFields) |
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
table.clean { | |
margin-top: 20px; | |
border-collapse: collapse; | |
} | |
table.clean caption { | |
font-weight: bold; | |
font-size: 14px; | |
line-height: 18px; | |
margin-bottom: 10px; |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Hello, World!</title> | |
<meta charset="utf-8" /> | |
</head> | |
<body> | |
<h1>Hello, World!</h1> | |
</body> | |
</html> |
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 RequestHeaders | |
* | |
* Static class to facilitate looking up request headers. | |
*/ | |
class RequestHeaders | |
{ | |
/** |