Skip to content

Instantly share code, notes, and snippets.

View oksushi's full-sized avatar

Cal Wilson oksushi

View GitHub Profile
@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));
@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 / 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 / css-stats-ack.sh
Created October 1, 2012 23:03 — forked from pjkix/css-stats-ack.sh
shell script to generate some css file statistics
#!/bin/bash
## v1.0.6
## this script will gernerate css stats
### example output
# CSS STATS
# ----------
# Floats: 132
@oksushi
oksushi / dabblet.css
Created December 13, 2012 03:45 — forked from anonymous/dabblet.css
Untitled
* {
margin: 0;
padding: 0;
}
body: {
margin: 0;
padding: 0;
}
div {
border: 2px solid;
@oksushi
oksushi / dabblet.css
Created December 13, 2012 04:08 — forked from anonymous/dabblet.css
Untitled
* {
margin: 0px;
padding: 0px;
}
body {
background-color:#888;
vertical-align:top;
}
div#header,
div#content,
@oksushi
oksushi / dabblet.css
Created December 17, 2012 05:12 — forked from martisj/dabblet.css
Icons getting cut off
/* Icons getting cut off*/
span.event-type
{
color: #6c6c6c;
}
.event_heading{
color: #ffffff;
background-color: #464646;
margin: 15px -26px 0 -24px;
@oksushi
oksushi / dabblet.css
Created March 25, 2013 06:49 — forked from anonymous/dabblet.css
Any chance to get the result displayed as in
/**
* Any chance to get the result displayed as in
* http://dabblet.com/gist/5235311 without using
* javascript or having to move the subnav out of .nav?
*/
* { margin: 0; padding: 0; }
li { list-style: none; }
.nav > li { width: 20%; float: left; color: white; min-height: 6ex; }
.nav > li > ul { /* this is supposed to be 100% wide */position: absolute; left: 0; right: 0; top: 6ex }
@oksushi
oksushi / dabblet.css
Created May 30, 2013 11:10 — forked from LeaVerou/dabblet.css
Vertical centering with Flexbox + margin fallback
/**
* Vertical centering with Flexbox + margin fallback
* Lea Verou & David Storey
*/
html, body { height: 100%; }
body {
width: 100%; /* needed for FF */
margin: 0;
'use strict';
/*******************************************************************************************************
*
* FOLDER STRUCTURE
*
* dev // files in root just move to ./prod/ and *.html files will look for grunt-includes directives
* ├── HTMLincludes // HTML snippets included by grunt-includes
* │ └── windows.html
* ├── fonts // files will simply be moved to ./prod/fonts/