Skip to content

Instantly share code, notes, and snippets.

View richardsession's full-sized avatar
🏠
Looking for new projects

Richard Session richardsession

🏠
Looking for new projects
View GitHub Profile
@richardsession
richardsession / jailson_help.php
Created March 22, 2012 17:36
Jailson Setup in Controller
var $components = array(
'Jailson.AclAuth' => array(
'deny'=>array('*'),
'allow'=>array(
'login' => array('*'),
'logout' => array('*'),
'view' => array('*'),
'add' => array('*'),
'admin_index' => array('global_administrator', 'site_administrator', 'agent'),
'admin_view' => array('global_administrator', 'site_administrator', 'agent'),
@richardsession
richardsession / 0_selector_hacks.scss
Created December 19, 2011 21:22 — forked from chriseppstein/0_selector_hacks.scss
This gist demonstrates some uses of the new sass feature: Passing content blocks to mixins.
@mixin ie6 { * html & { @content } }
#logo {
background-image: url("/images/logo.png");
@include ie6 { background-image: url("/images/logo.gif"); }
}
@richardsession
richardsession / csv_export.php
Created August 18, 2010 19:28
Dynamically generates a .csv file by looping through the results of a database call in CakePHP
<?php
/**
*
* Dynamically generates a .csv file by looping through the results of a sql query.
*
*/
function export()
{