To transform the currently opened Graphviz source file (in DOT Language) into a PNG:
{
"cmd": [ "dot", "-Tpng", "-o", "$file_base_name.png", "$file"],
"selector": "source.dot"
}
<?php | |
if ($modx->event->name == 'OnLoadWebDocument' | |
&& $modx->resource->get('type') == 'document') { | |
$mime = $modx->resource->get('contentType'); | |
$isBinary = $modx->getObject('modContentType', array('mime_type' => $mime))->get('binary'); | |
if ($isBinary == 1) { | |
$bytes = base64_decode($modx->resource->get('content')); | |
} | |
<?php | |
/* | |
getTVLabel snippet for modx 2.3 | |
Version: | |
------------------ | |
v0.0.1 (2015-03-06 16:44) | |
Author: | |
------------------ |
To transform the currently opened Graphviz source file (in DOT Language) into a PNG:
{
"cmd": [ "dot", "-Tpng", "-o", "$file_base_name.png", "$file"],
"selector": "source.dot"
}
var gulp = require('gulp'); | |
var sass = require('gulp-sass'); | |
var uglify = require('gulp-uglify'); | |
var rename = require('gulp-rename'); | |
var minifycss = require('gulp-minify-css'); | |
var concat = require('gulp-concat'); | |
var neat = require('node-neat').includePaths; | |
var browserSync = require('browser-sync'); | |
var paths = { |
$modAuth = $this->modx->user->getUserToken('mgr'); | |
$thumbQuery = http_build_query(array( | |
'src' => $image['urlAbsolute'], | |
'w' => 360, | |
'h' => 270, | |
'HTTP_MODAUTH' => $modAuth, | |
//'f' => $thumbnailType, | |
'q' => 80, | |
'wctx' => 'mgr', |
# ignore everything in this directory | |
/* | |
# but not these | |
!.gitignore | |
!assets/ | |
!core/ | |
!_SASS/ | |
!_JS/ |
<?php | |
/** | |
* Hide TVs for root elements... | |
*/ | |
/* Set option(s) here */ | |
$tvs_to_hide = '1,2'; | |
/* ---------------------------------- */ |
<?php | |
add_action( 'wp_enqueue_scripts', 'enqueue_my_styles' ); | |
/** | |
* Example callback function that demonstrates how to properly enqueue conditional stylesheets in WordPress for IE. | |
* IE10 and up does not support conditional comments in standards mode. | |
* | |
* @uses wp_style_add_data() WordPress function to add the conditional data. | |
* @link https://developer.wordpress.org/reference/functions/wp_style_add_data/ |
data:text/html, <style type="text/css">#e{position:absolute;top:0;right:0;bottom:0;left:0;}</style><div id="e"></div><script src="http://d1n0x3qji82z53.cloudfront.net/src-min-noconflict/ace.js" type="text/javascript" charset="utf-8"></script><script>var e=ace.edit("e");e.setTheme("ace/theme/monokai");e.getSession().setMode("ace/mode/ruby");</script> |