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
handlebars_helpers: () -> | |
Handlebars.registerHelper 'ifbool', (b, c) -> | |
if b then do c.fn else do c.inverse | |
Handlebars.registerHelper 'ifequal', (l, r, c) -> | |
if l is r then do c.fn else do c.inverse | |
Handlebars.registerHelper 'unlessequal', (l, r, c) -> | |
unless l is r then do c.fn else do c.inverse |
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
/* ====================================================================================================== */ | |
/* IMPORTS | |
/* ====================================================================================================== */ | |
//gems | |
@import "h5bp" | |
@import "ceaser-easing" | |
//compass | |
@import "compass/css3/" | |
@import "compass/typography/" |
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
# Modernizr.csstransformspreserve3d | |
Modernizr.addTest 'csstransformspreserve3d', () -> | |
val = '' | |
cssText = '' | |
ret = '' | |
prop = 'transform-style' | |
if 'webkitTransformStyle' of document.documentElement.style | |
prop = '-webkit-' + prop |
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
function explode (delimiter, string, limit) { | |
if ( arguments.length < 2 || typeof delimiter == 'undefined' || typeof string == 'undefined' ) return null; | |
if ( delimiter === '' || delimiter === false || delimiter === null) return false; | |
if ( typeof delimiter == 'function' || typeof delimiter == 'object' || typeof string == 'function' || typeof string == 'object'){ | |
return { 0: '' }; | |
} | |
if ( delimiter === true ) delimiter = '1'; | |
// Here we go... |
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 | |
/** | |
* The development database settings. | |
*/ | |
return array( | |
'default' => array( | |
'type' => 'mysqli', | |
'connection' => array( | |
'hostname' => '127.0.0.1', |
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
<!-- copy this to YOUR_THEME.tmTheme--> | |
<dict> | |
<key>name</key> | |
<string>diff: deleted</string> | |
<key>scope</key> | |
<string>markup.deleted</string> | |
<key>settings</key> | |
<dict> | |
<key>background</key> | |
<string>#EAE3CA</string> |
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
# Compiled source # | |
################### | |
*.com | |
*.class | |
*.dll | |
*.exe | |
*.o | |
*.so | |
# SVN # |
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 | |
namespace Fuel\Migrations; | |
class refactor_created_at_and_updated_at { | |
public function up() { | |
$tables = \DB::list_tables(); | |
foreach ($tables as $table) { | |
\Cli::write($table); | |
if(\DBUtil::field_exists($table, array('created_at', 'updated_at'))) { |