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
@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
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
@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
$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
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
function respondsTo(respondToSize, callback, undoCallback) { | |
if ( typeof respondToSize === 'string' ) | |
{ | |
respondToSize = [respondToSize]; | |
} | |
function calculateSize() | |
{ | |
var width = jQuery('body').width(); | |
var size = 'desktop'; |
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-desktop: "only screen and (min-width: 1024px)"; | |
$rwd-tablet-device: "only screen and (max-device-width: 980px)"; | |
$rwd-mobile-device: "only screen and (max-device-width: 600px)"; | |
$rwd-tablet: "only screen and (max-width: 980px)"; | |
$rwd-tablet-only: "only screen and (min-width: 740px) and (max-width: 980px)"; | |
$rwd-small-tablet: "only screen and (max-width: 740px)"; | |
$rwd-small-tablet-only: "only screen and (min-width: 600px) and (max-width: 740px)"; |
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 edg_get_pagenum_link_query_vars($query_vars) { | |
$query_vars['test'] = 'asdf'; | |
return $query_vars; | |
} | |
add_filter('get_pagenum_link_query_vars', 'edg_get_pagenum_link_query_vars'); |
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 calculateColumnWidth($maxWidth, $columns, $gutter, $margin) { | |
return floor(($maxWidth-(($columns - 1) * $gutter + 2 * $margin)) / $columns); | |
} | |
echo calculateColumnWidth(960, 5, 20, 0); |