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
AL : Alabama | |
AK : Alaska | |
AZ : Arizona | |
AR : Arkansas | |
CA : California | |
CO : Colorado | |
CT : Connecticut | |
DE : Delaware | |
FL : Florida | |
GA : Georgia |
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
$rwd-tablet: "only screen and (max-width: 980px)"; | |
$rwd-tablet-only: "only screen and (max-width: 980px) and (min-width: 740px)"; | |
$rwd-small-tablet: "only screen and (max-width: 740px)"; | |
$rwd-small-tablet-only: "only screen and (max-width: 740px) and (min-width: 600px)"; | |
$rwd-wide-mobile: "only screen and (max-width: 600px)"; | |
$rwd-wide-mobile-only: "only screen and (max-width: 600px) and (min-width: 480px)"; | |
$rwd-mobile: "only screen and (max-width: 480px)"; |
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
@mixin paginate($backgroundColor: false, $textColor: #000, $selectedBackgroundColor: #000, $selectedTextColor: #fff) { | |
.pagination { | |
clear: both; | |
width: 100%; | |
overflow: hidden; | |
padding: 10px 0 1px 0; | |
margin: 20px 0 20px 0; | |
@include box-sizing(border-box); |
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
class CalendarEvent | |
{ | |
public $description; | |
public $start; | |
public $end; | |
public function data() | |
{ | |
$format = 'Ymd\THis'; | |
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
@media only screen and (max-width: 959px) { /* iPad */ | |
} | |
@media only screen and (max-width: 719px) { /* Kindle */ | |
} | |
@media only screen and (max-width: 599px) { /* Wide Phone */ |
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
# Exclude the build directory | |
build/* | |
# Exclude temp nibs and swap files | |
*~.nib | |
*.swp | |
# Exclude OS X folder attributes | |
.DS_Store | |
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 dropdown($name, $options, $value, $keys = FALSE, $attrs = array()) { | |
$attributes = array(); | |
foreach($attrs as $key => $attr) | |
{ | |
$attributes[] = $key."=\"".$attr."\""; | |
} | |
echo '<select name="'.$name.'" '.implode(' ', $attributes).'>'; | |
if ( $keys == 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
<?php | |
if ( ! function_exists('mailer') ) | |
{ | |
function mailer($to, $from, $subject, $template, $data = array()) | |
{ | |
$headers = "Content-Type: text/html; charset=UTF-8\r\n"; | |
$headers .= "From: {$from}\r\n"; | |
$path = get_theme_root() . '/' . get_template() . '/'; |
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
class Post_Model extends My_Model | |
{ | |
public function init() | |
{ | |
$this->belongs_to('contributor', array( | |
'class_name' => 'User_Model', | |
'foreign_key' => 'contributor_id' | |
)); | |
$this->belongs_to('editor', array( |
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 Create_Table_Sessions | |
{ | |
function up() | |
{ | |
create_table('ci_sessions', array( | |
array('name' => 'session_id', 'type' => 'varchar(40)', 'DEFAULT' => '0', 'NOT NULL' => TRUE), | |
array('name' => 'ip_address', 'type' => 'varchar(16)', 'DEFAULT' => '0', 'NOT NULL' => TRUE), | |
array('name' => 'user_agent', 'type' => 'varchar(50)', 'NOT NULL' => TRUE), | |
array('name' => 'last_activity', 'type' => 'int(10)', 'UNSIGNED' => TRUE, 'DEFAULT' => '0', 'NOT NULL' => TRUE), |