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
def run_phpspec | |
file = nil | |
unless ARGV[1].nil? | |
file = "spec/#{ARGV[1]}Spec.php" | |
end | |
command = "`which phpspec` run --format=pretty --no-code-generation -vv #{file}"; |
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 ParseShell extends AppShell | |
{ | |
function main() | |
{ | |
$this->stdout->styles( 'pass', [ 'text' => 'green' ] ); | |
$this->stdout->styles( 'fail', [ 'text' => 'red' ] ); |
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 SetupShell extends AppShell{ | |
function main(){ | |
system('./Console/cake acl create aco root controllers'); | |
system('./Console/cake AclExtras.AclExtras aco_sync'); | |
$handle = curl_init(); |
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 | |
/** | |
* Set up the application permissions | |
* | |
* @http_request(GET, /setup) | |
* @return void | |
*/ | |
public function setup() | |
{ |
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 PageableBehavior extends ModelBehavior | |
{ | |
/** | |
* A custom paginate | |
* | |
* @group scope |
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 sc_dropdown( $field, $repeater ) | |
{ | |
$plural = array(); | |
foreach(get_field( $field ) as $singular){ | |
$plular = $singular[ $repeater ]; | |
} |
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 | |
/** | |
* A wordpress rewrite wrapper | |
* | |
* @param string $alias | |
* @param string $url | |
* @return null | |
*/ | |
function connect( $alias, $url ) |
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
Section "InputClass" | |
Identifier "disable broken device" | |
MatchIsTouchscreen "on" | |
MatchProduct "Cando 11.6" | |
Option "Ignore" "on" | |
EndSection |
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
/* | |
|-------------------------------------------------------------------------- | |
| jQuery Boilerplate based on http://gregfranko.com/jquery-best-practices/#/8 | |
| Author: jaggyspaghetti | |
| Gist at https://gist.github.com/jaggyspaghetti/10555076 | |
|-------------------------------------------------------------------------- | |
*/ | |
(function(application) { | |
// avoid jQuery conflicts |
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
{ | |
"name": "", | |
"repositories": [ | |
{ | |
"type": "pear", | |
"url": "http://pear.cakephp.org" | |
}, | |
{ | |
"type": "vcs", | |
"url": "https://github.com/jaggyspaghetti/rake-db-migrator.git" |