Skip to content

Instantly share code, notes, and snippets.

View oksushi's full-sized avatar

Cal Wilson oksushi

View GitHub Profile
@oksushi
oksushi / dabblet.css
Created July 27, 2012 04:23 — forked from anonymous/dabblet.css
centering inline level items
/**
* centering inline level items
*/
div {text-align: center;}
a {display: inline-table; background: hotpink; height: 5em; margin: 1em; width: 10em; padding: .5em; border-radius: 1em;}
span {display: table-cell; height: 5em; vertical-align: middle;}
@oksushi
oksushi / gist:3021999
Created June 30, 2012 03:14 — forked from chrisjoyce/gist:1177888
Stylus conversion of Normalize.css
/*
* Normalize.css converted to Stylus
* http://github.com/necolas/normalize.css
*/
article, aside, details, figcaption, figure, footer, header, hgroup, nav, section
display: block
audio, canvas, video
display: inline-block
@oksushi
oksushi / migx_modx-2.2.diff
Created October 6, 2011 04:43 — forked from mkschell/migx_modx-2.2.diff
MIGX diff for MODX2.2
--------------- core/components/migx/elements/tv/input/migx.php ---------------
index 11a9c2d..53370a5 100644
@@ -133,6 +133,7 @@ $lang = $this->xpdo->lexicon->fetch();
$lang['mig_add'] = !empty($properties['btntext'])?$properties['btntext']:$lang['mig_add'];
$modx->smarty->assign('i18n', $lang);
$this->xpdo->smarty->assign('properties', $properties);
+$this->xpdo->smarty->assign('resource', is_object($this->xpdo->resource) ? $this->xpdo->resource->toArray() : array());
$this->xpdo->smarty->assign('pathconfigs', $this->xpdo->toJSON($pathconfigs));
$this->xpdo->smarty->assign('columns', $this->xpdo->toJSON($cols));
$this->xpdo->smarty->assign('fields', $this->xpdo->toJSON($fields));