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 | |
public $mapMethods = array( | |
'/findListBy(\w+)/' => 'doSomething' | |
); | |
public function doSomething() { | |
$args = func_get_args(); | |
array_shift($args); | |
debug(Debugger::trace()); |
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
# Please enter the commit message for your changes. Lines starting | |
# with '#' will be ignored, and an empty message aborts the commit. | |
# On branch 2.4 | |
# Changes to be committed: | |
# (use "git reset HEAD <file>..." to unstage) | |
# | |
# modified: lib/Cake/Controller/Controller.php | |
# | |
# Untracked files: | |
# (use "git add <file>..." to include in what will be committed) |
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
# Please enter the commit message for your changes. Lines starting | |
# with '#' will be ignored, and an empty message aborts the commit. | |
# On branch 2.4 | |
# Changes to be committed: | |
# (use "git reset HEAD <file>..." to unstage) | |
# | |
# modified: lib/Cake/Controller/Controller.php | |
# | |
# Untracked files: | |
# (use "git add <file>..." to include in what will be committed) |
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 | |
... | |
public function index($id = null) { | |
if (!$id) { | |
$this->redirect(array('#' => 'showthis')); | |
} |
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 | |
$willWork = array( | |
'one' => 1, | |
'two' => 2 | |
); | |
// sizeof($willWork) === 2 | |
$willNotWork = 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
FB.Event.subscribe('confabulation.finikiticate', | |
function(response) { | |
alert('You liked the URL: ' + response); | |
} | |
); |
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
cd /usr/bin | |
mv iceweasel xiceweasel | |
which chrome | |
ln -s /opt/google/chrome/chrome iceweasel | |
mv epiphany-browser xepiphany-browser | |
ln -s /opt/google/chrome/chrome epiphany-browser |
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
mysql> create database so; | |
Query OK, 1 row affected (0.00 sec) | |
mysql> use so; | |
Database changed | |
mysql> create table example ( y int(4) ); | |
Query OK, 0 rows affected (0.10 sec) | |
mysql> insert into example values ("1234"); | |
Query OK, 1 row affected (0.08 sec) |
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
[17:29][andy@air:~/projects/cakephp-codesniffer(develop)]$ more tests/files/rhelms1_pass.php | |
<?php | |
/** | |
* If you want to pull everything from a netscape stype ldap server | |
* iPlanet, Redhat-DS, Project-389 etc you need to ask for specific | |
* attributes like so. Other wise the attributes listed below wont | |
* show up | |
*/ | |
public function setNetscapeEnv() { |
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
[15:28][andy@air:~/projects/cakephp/app(2.2)]$ Console/cake test core AllTests --stderr | |
Welcome to CakePHP v2.2.0-dev Console | |
--------------------------------------------------------------- | |
App : app | |
Path: /Users/andy/projects/cakephp/app/ | |
--------------------------------------------------------------- | |
CakePHP Test Shell | |
--------------------------------------------------------------- | |
...................S......................................... 61 / 2885 ( 2%) |