prepend with sudo on mac
pear install --alldeps --force phpunit/phpunit
pear install phpunit/PHPUnit_Selenium
pear install phpunit/phpunit_story
pear install phpunit/dbunit
<?php | |
/** | |
* query class that performs ..queries!! :) | |
* | |
* This is actually an adapter version of a type-ahead-find solution I did | |
* for a client once.. | |
* | |
* See https://gist.github.com/dsmeringe/4952481 for usage of this class | |
* | |
* This class IRL is used to replicate another DB and be used to perform type |
<?php | |
//keeps failing on sunday evenings | |
$userInBed = Bed::model()->with('pillow','sheet')->findByAttributes( | |
array('user'=>':theOne'), | |
'', | |
array(':theOne'=>'smeringe') | |
); |
mysqldump -C --routines --add-drop-database -uUSERNAME -p --databases NAMES-OF-DATABASE-1 NAME-OF-DATABASE-2.. |
<?php | |
/** | |
* Search support for websites using JSON/JSONP. | |
* Built to be used with a jquery ui autocomplete field. | |
* | |
* This example is slightly generalized compared to it's original.. | |
* | |
* Search parameter for search values is 'term', like | |
* quicksearch.php?term=search-value | |
* |