Skip to content

Instantly share code, notes, and snippets.

View cliftoncanady's full-sized avatar

cliftoncanady

View GitHub Profile
@cliftoncanady
cliftoncanady / config.rb
Last active December 24, 2015 08:39 — forked from nathansmith/config.rb
preferred_syntax = :sass
http_path = '/'
css_dir = 'css'
sass_dir = 'scss'
images_dir = 'img'
javascripts_dir = 'js'
relative_assets = true
line_comments = true
output_style = :compressed
@cliftoncanady
cliftoncanady / content-slider.php
Created November 30, 2012 02:06
WordPress Custom Post Type for Foundation Orbit Slider
<?php
$args = array(
'post_type' => 'slide',
'posts_per_page' => 999
);
$temp = $wp_query;
$wp_query = null;
$wp_query = new WP_Query($args);
if($wp_query->have_posts()) : ?>
<div id="featured">
@cliftoncanady
cliftoncanady / gist:3863400
Created October 10, 2012 05:52 — forked from padolsey/gist:527683
JavaScript: Detect IE
// ----------------------------------------------------------
// A short snippet for detecting versions of IE in JavaScript
// without resorting to user-agent sniffing
// ----------------------------------------------------------
// If you're not in IE (or IE version is less than 5) then:
// ie === undefined
// If you're in IE (>=5) then you can determine which version:
// ie === 7; // IE7
// Thus, to detect IE:
// if (ie) {}