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 namespace Redub\Base { | |
class Person extends \Redub\ORM\Model | |
{ | |
/** | |
* Fetch the values of the related groups from the database | |
* | |
* @access public | |
* @return Collection The groups values |
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 | |
function ★() { | |
echo "You're a star! \n"; | |
} | |
★(); |
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
$config = preg_replace('#=>\s*array \(#', '=> [', $config); | |
$config = preg_replace('#\),#', '],', $config); | |
$config = preg_replace('#,(\s*)\]#', '$1]', $config); | |
$config = preg_replace('#\d+ => #', '', $config); | |
$config = preg_replace('#\[\s+\]#', '[]', $config); | |
$config = str_replace(' ', "\t", $config); | |
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
'/test/[!:name]' => function($this) { | |
if ($this['request']->checkMethod('get')) { | |
return strtoupper($this['request']->get('name')); | |
} | |
} |
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
<% namespace Dotink\Inkwell\View { | |
/** | |
* | |
* @author Matthew J. Sahagian [mjs] <[email protected]> | |
* @param $users The array of users | |
* @param | |
*/ | |
if ($this['wtf'] == 'test'): |
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 namespace Dotink\Jest { | |
include 'Mime.php'; | |
Mime::define('App\Test')->implementing('IFake') | |
-> extending('App\TestBase')->implementing('IFakeBase'); | |
$test = Mime::create('App\Test') | |
-> onNew('factory', function($mime) { | |
$mime -> onCall('speak') -> give(function(){ |
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 namespace Dotink\Jest { | |
class Mime extends Jest | |
{ | |
/** | |
* | |
*/ | |
static private $parents = array(); | |
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 | |
$tests = [ | |
'FavoriteURL', | |
'URLHelper', | |
'FavoriteURLs', | |
'AmazingURLsFromSpace', | |
'FavoriteURLHelper', | |
'FBIManBob', | |
'removeXMLTags', |
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
\Dotink\Flourish\ | |
# Loaded from /includes/lib/flourish via: | |
# | |
# 'autoloaders' => array( | |
# '\Dotink\Flourish\*' => 'COMPAT:includes/lib/flourish' | |
# ) | |
ORM | |
ActiveRecord |
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
REST is software design on the scale of decades: every detail is intended to promote software longevity and independent evolution. Many of the constraints are directly opposed to short-term efficiency. Unfortunately, people are fairly good at short-term design, and usually awful at long-term design. Most don’t think they need to design past the current release. There are more than a few software methodologies that portray any long-term thinking as wrong-headed, ivory tower design (which it can be if it isn’t motivated by real requirements). |
NewerOlder