This file contains 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
## Macro title: Responsive Gallery | |
## Macro has a body: N | |
## Body processing: n/a | |
## Output: HTML | |
## | |
## Developed by: David Simpson <david@appfusions.com> | |
## Date created: 2013-11-20 | |
## Installed by: My Name | |
## @noparams |
This file contains 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
/** | |
* Add this to http://server/wp-admin/edit-comments.php | |
*/ | |
<script> | |
function printIp(obj) { | |
console.log( ' +++ IP: ' + JSON.stringify(obj, null, '\t') ); | |
} |
This file contains 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
## {todo} | |
## | |
## Macro name: todo | |
## Macro title: TODO | |
## Macro has a body: N | |
## Body processing: No macro body | |
## Output: Selected output option | |
## | |
## Developed by: David Simpson <david@davidsimpson.me> | |
## Date created: 2011-sometime |
This file contains 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
/** | |
* Usage: | |
* 'Hello ${name}'.template({ | |
* name: 'chaps' | |
* }); | |
* | |
* From: https://gist.github.com/WebReflection/8f227532143e63649804 | |
*/ | |
String.prototype.template = function (object) { |
This file contains 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
/** | |
* See: https://davidsimpson.me/2013/05/19/using-mpdf-with-codeigniter/ | |
* and: https://twitter.com/freddysidauruk/status/586366799861563392 | |
*/ | |
// In `/application/library/pdf.php`: | |
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); | |
This file contains 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
## Install CloudFoundry | |
## brew tap pivotal/tap | |
homebrew::tap { 'pivotal/tap': } | |
## brew install cloudfoundry-cli | |
package { "pivotal/tap/cloudfoundry-cli": | |
ensure => present, | |
require => Homebrew::Tap['pivotal/tap'], | |
} ## -> installs `cloudfoundry-cli` to `/opt/boxen/homebrew/Cellar/cloudfoundry-cli/` |
This file contains 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
$hello = 'hello world'; | |
$html = "<html><body>$hello</body></html>"; // double quotes here | |
$pdf = $this->pdf->load(); | |
$pdf->WriteHTML($html); |
This file contains 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
#set( $storageHtml = $myHelper.convertStorageToView('<ac:structured-macro ac:name="info"><ac:rich-text-body><p><strong>This</strong> <em>is</em> the cheese macro: <ac:structured-macro ac:name="cheese" /></p></ac:rich-text-body></ac:structured-macro>') ) | |
## Saving the string to a variable ending in Html is equivalent to using the @HtmlSafe annotation on the `convertStorageToView` method | |
<div>$storageHtml</div> |
This file contains 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
## ********************** NOTE: I've removed large chunks of this file, so it won't work ********************** ## | |
## ********************** NOTE: This is just to get the idea of where to edit ********************** ## | |
## **** @see https://davidsimpson.me/2014/02/27/an-alternative-to-renderconfluencemacro/#comment-188208 **** ## | |
## GLOBAL DECORATOR | |
## This decorator handles a global context, i.e. information which is independent of space. | |
## Supports modes: 'dashboard', 'userdir', 'rss'. | |
... |