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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <scheme name="tom-- Dark Mellow" version="124" parent_scheme="Default"> | |
| <option name="LINE_SPACING" value="1.3" /> | |
| <font> | |
| <option name="EDITOR_FONT_NAME" value="Consolas" /> | |
| <option name="EDITOR_FONT_SIZE" value="12" /> | |
| </font> | |
| <font> | |
| <option name="EDITOR_FONT_NAME" value="Andale Mono" /> | |
| <option name="EDITOR_FONT_SIZE" value="11" /> |
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
| vmap <leader>s <esc>:'<,'> !php -r 'echo serialize(eval("return " . file_get_contents("php://stdin") . ";"));'<CR> | |
| vmap <leader>u <esc>:'<,'> !php -r 'var_export(unserialize(file_get_contents("php://stdin")));'<CR> |
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 | |
| /** | |
| * Inspect your globals. | |
| * | |
| * Include this file to display any globals that might be defined. Maybe exit() afterwards. | |
| * | |
| * @author Tom Worster <fsb@thefsb.org> | |
| * @link https://gist.github.com/tom--/5876699 | |
| * @copyright Copyright © 2013 Tom Worster | |
| * @license BSD 2-clause http://opensource.org/licenses/BSD-2-Clause |
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 | |
| /** @var CController $controller */ | |
| $controller->widget( | |
| 'zii.widgets.grid.CGridView', | |
| array( | |
| 'columns' => array( | |
| array( | |
| 'header' => 'Row', | |
| 'value' => '$row + ($this->grid->dataProvider->pagination->currentPage |
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 | |
| $x = "Hello world!"; | |
| $y = include( | |
| 'data:application/x-php;charset=utf8,<?php return' | |
| . var_export($x, true) | |
| .';' | |
| ); |
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 | |
| $input = preg_replace( | |
| '{& (?! \#x[\da-f]{2,6} ; ) | |
| (?! \#\d{3,6} ; ) | |
| (?! [a-z0-9]{2,16} ; ) | |
| }xiu', | |
| '&', | |
| $input | |
| ); |
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
| <!DOCTYPE html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | |
| <title>Spinitron Playlists</title> | |
| </head> | |
| <body> | |
| <p class="recentsong"> | |
| <span class="songpart"><b>Wave Guidance Allows Three</b></span> | |
| <span class="artistpart">by <b><a target="_top" href="/public/index.php?station=wzbc&dbdetail=a&dbid=83733">The Swifter</a></b></span> |
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 | |
| $letnum = '\p{L}\p{Mn}\p{Mc}\p{Nd}'; | |
| $sym = '+&@#/%=~_|$'; | |
| $pnct = '?!:,.-'; | |
| $c1 = "[$letnum$sym$pnct]"; | |
| $c2 = "[$letnum$sym]"; | |
| // then the regex pattern is, so to speak: | |
| // \b(?: https?:// | www\. ) (?: \($c1*\) | $c1 )* (?: \($c1*\) | $c2 ) | |
| // with xui options. |