I hereby claim:
- I am samdark on github.
- I am samdark (https://keybase.io/samdark) on keybase.
- I have a public key whose fingerprint is 22C9 A490 0E05 7C30 6A9D C678 F1AE 38B2 A108 39BF
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| // Laravel | |
| Route::get('user/{id}', 'UserController@showProfile'); | |
| // Yii | |
| 'user/<id>' => 'user/profile', |
| <?php | |
| /** | |
| * Q: | |
| * | |
| * Hi, could please add this feature please. Here is my case, I have two themes | |
| * and I have modules. How can one set each view file in the modules to use | |
| * either one of the themes. Such if the view is admin use backoffice theme and | |
| * if view is index use siteNew theme. I so someting like setBasePath and | |
| * setBaseUrl but I don not know where they should be exactly. | |
| * |
| git filter-branch --commit-filter ' | |
| if [ "$GIT_COMMITTER_NAME" = "Alex" ]; | |
| then | |
| GIT_COMMITTER_NAME="Alexander Makarov"; | |
| GIT_AUTHOR_NAME="Alexander Makarov"; | |
| GIT_COMMITTER_EMAIL="sam@rmcreative.ru"; | |
| GIT_AUTHOR_EMAIL="sam@rmcreative.ru"; | |
| git commit-tree "$@"; | |
| else | |
| git commit-tree "$@"; |
| <?php | |
| /** | |
| * interview street test runner | |
| * | |
| * Test code should be in /test.php. | |
| * Tests should be unpacked under /tests. | |
| */ | |
| $dir=dirname(__FILE__) . "/tests"; | |
| $di=new DirectoryIterator($dir); |
| git checkout . | |
| git-clean -f |
| <?php | |
| // first you need to export all your time you want to sum up and copy to this script dir | |
| $sum = 0; | |
| $f = fopen('export_tasks.csv', 'r'); | |
| if($f) | |
| { | |
| while (($data = fgetcsv($f, 1000, ",")) !== FALSE) { | |
| if(!isset($data[4])) | |
| continue; |
| <?php | |
| /** | |
| * Component class file. | |
| * | |
| * @link http://www.yiiframework.com/ | |
| * @copyright Copyright © 2008-2012 Yii Software LLC | |
| * @license http://www.yiiframework.com/license/ | |
| */ | |
| namespace yii\base; |
| <?php | |
| function render_level_list($items) | |
| { | |
| $level=0; | |
| foreach($items as $item) | |
| { | |
| if($item->level==$level) { | |
| echo "</li>\n"; | |
| } |