This file contains 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
// This generates a duplicate selector | |
h1, | |
.h1 { | |
font-size: 24px; } | |
.fake-module { | |
.fake-header-1 { | |
@extend .h1; } } | |
// compiles to => | |
h1, |
This file contains 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
[nginx] | |
name=nginx repo | |
baseurl=http://nginx.org/packages/centos/$releasever/$basearch/ | |
gpgcheck=0 | |
enabled=1 |
This file contains 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
[10gen] | |
name=10gen Repository | |
baseurl=http://downloads-distro.mongodb.org/repo/redhat/os/x86_64 | |
gpgcheck=0 |
This file contains 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
// Shared colors for buttons and alerts | |
// | |
// Use Sass lists to avoid writing out repeating patterns of Sass code. | |
// | |
// For example, the following avoids having to write out a selector and | |
// set of style rules for each alert type, when only class and | |
// variable names are different. | |
// | |
// Follows (and many thanks to) Nathan Weizenbaum (@nex3)’s comment at: | |
// http://groups.google.com/group/sass-lang/msg/987926ad9fe5ad43? |
This file contains 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 Helper_View { | |
public static function render($template_suggestions, $data) | |
{ | |
$last_exception = null; | |
foreach ($template_suggestions as $template) | |
{ | |
try | |
{ | |
return View::factory($template, $data); |
This file contains 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 Helper_View { | |
public static function render($template_suggestions, $data) | |
{ | |
$last_exception = null; | |
foreach ($template_suggestions as $template) | |
{ | |
try | |
{ | |
return View::factory($template, $data); |
This file contains 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 ------------------------------------------------------------------- | |
@import "susy"; | |
// Configuration ------------------------------------------------------------- | |
$total-cols : 12; | |
$col-width : 4em; | |
$gutter-width : 1em; | |
$side-gutter-width : $gutter-width; |
This file contains 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 | |
abstract class Controller_Parts extends Controller_Template { | |
/** | |
* @var Array Ordered list of steps in the form <step name> => <function to execute> | |
*/ | |
protected $steps = array( | |
'make' => 'vcdb', | |
'year' => 'vcdb', |
This file contains 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 Controller extends Fuel\Core\Controller { | |
public $secure = array(); | |
public function before($data = null) | |
{ | |
$should_be_secure = in_array($this->request->action, $this->secure); |