Initial status:
M1 --> S1 <- Old hardware running 5.0 to be replaced
S2 S3 <- New hardware runnign 5.5 to replace the old.
Transitional status:
<?php | |
$x = "Hello world!"; | |
$y = include( | |
'data:application/x-php;charset=utf8,<?php return' | |
. var_export($x, true) | |
.';' | |
); |
<?php | |
/** @var CController $controller */ | |
$controller->widget( | |
'zii.widgets.grid.CGridView', | |
array( | |
'columns' => array( | |
array( | |
'header' => 'Row', | |
'value' => '$row + ($this->grid->dataProvider->pagination->currentPage |
<?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 |
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> |
<?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" /> |
/** | |
* Makes contenteditable elements within a container generate change events. | |
* | |
* When you do, e.g. $obj.editable(), all the DOM elements with attribute contenteditable | |
* that are children of the DOM element $obj will trigger a change event when their | |
* contents is edited and changed. | |
* | |
* See: http://html5demos.com/contenteditable | |
* | |
* @return {*} |
The standard redcarpet renderer generates code blocks like <pre><code class="ruby">...
instead of the W3C-standard <pre><code class="language-ruby">...
. This means the nanoc ColorizeSyntax Filter cannot cope with standard output from redcarpet.
One way to fix this is to customize the redcarpet renderer to generate colorized code blocks and skip the nanoc ColorizeSyntax Filter. The
redcarpet readme
shows how to extend its HTML renderer to do it. I put the custom renderer class in my nanoc /lib
dir like this:
In /lib/default.rb
require 'redcarpet'
root: my@emailaddress.foo |