This file contains hidden or 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
$.fn.equalize = function(options) | |
{ | |
var self = this; | |
function equalize () { | |
var elements = $(self); | |
// calculate the max height | |
var maxHeight = Math.max.apply(null, elements.map(function () { | |
return $(this).height(); |
This file contains hidden or 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
$references = array( | |
'SELECT' => 'yellow', | |
'deleted' => 'red', | |
'DELETE' => 'red', | |
'UPDATE' => 'blue', | |
'INSERT' => 'green', | |
); | |
$excludes = array('SHOW FULL COLUMNS', 'Aro', 'Aco', 'Permission', 'SHOW TABLES', 'SELECT CHARACTER_SET_NAME', 'SELECT COUNT'); | |
$print = true; |
This file contains hidden or 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
{ | |
"name": "", | |
"repositories": [ | |
{ | |
"type": "pear", | |
"url": "http://pear.cakephp.org" | |
}, | |
{ | |
"type": "vcs", | |
"url": "https://github.com/jaggyspaghetti/rake-db-migrator.git" |
This file contains hidden or 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
/* | |
|-------------------------------------------------------------------------- | |
| jQuery Boilerplate based on http://gregfranko.com/jquery-best-practices/#/8 | |
| Author: jaggyspaghetti | |
| Gist at https://gist.github.com/jaggyspaghetti/10555076 | |
|-------------------------------------------------------------------------- | |
*/ | |
(function(application) { | |
// avoid jQuery conflicts |
This file contains hidden or 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
Section "InputClass" | |
Identifier "disable broken device" | |
MatchIsTouchscreen "on" | |
MatchProduct "Cando 11.6" | |
Option "Ignore" "on" | |
EndSection |
This file contains hidden or 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
<?php | |
/** | |
* A wordpress rewrite wrapper | |
* | |
* @param string $alias | |
* @param string $url | |
* @return null | |
*/ | |
function connect( $alias, $url ) |
This file contains hidden or 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
<?php | |
function sc_dropdown( $field, $repeater ) | |
{ | |
$plural = array(); | |
foreach(get_field( $field ) as $singular){ | |
$plular = $singular[ $repeater ]; | |
} |
This file contains hidden or 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
<?php | |
class PageableBehavior extends ModelBehavior | |
{ | |
/** | |
* A custom paginate | |
* | |
* @group scope |
This file contains hidden or 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
<?php | |
/** | |
* Set up the application permissions | |
* | |
* @http_request(GET, /setup) | |
* @return void | |
*/ | |
public function setup() | |
{ |
This file contains hidden or 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
<?php | |
class SetupShell extends AppShell{ | |
function main(){ | |
system('./Console/cake acl create aco root controllers'); | |
system('./Console/cake AclExtras.AclExtras aco_sync'); | |
$handle = curl_init(); |