Skip to content

Instantly share code, notes, and snippets.

View cliftoncanady's full-sized avatar

cliftoncanady

View GitHub Profile
@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) {}
@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 / 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
iframe {
max-width: 100%;
}
{
"name": "wordpress-starter-theme",
"version": "1.0.0",
"dependencies": {},
"devDependencies": {
"grunt": "~0.4.1",
"grunt-contrib-compass": "~0.2.0",
"grunt-contrib-imagemin": "~0.1.4",
"grunt-contrib-jshint": "~0.4.3",
"grunt-contrib-uglify": "~0.2.0",
'use strict';
module.exports = function(grunt) {
// load all grunt tasks
require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks);
grunt.initConfig({
// watch for changes and trigger compass, jshint, uglify and livereload
watch: {
<?php
/*
Plugin Name: Login Logo Custom CSS
Description: Custom CSS for the login screen
Version: 0.1
License: GPL version 2 or any later version
Author: Mark Jaquith
Author URI: http://coveredwebservices.com/
*/
var gulp = require('gulp'),
sass = require('gulp-sass'),
autoprefixer = require('gulp-autoprefixer'),
rename = require('gulp-rename'),
cssmin = require('gulp-cssmin'),
jshint = require('gulp-jshint'),
concat = require('gulp-concat'),
uglify = require('gulp-uglify'),
addsrc = require('gulp-add-src'),
watch = require('gulp-watch'),
{
"name": "kwdev",
"version": "1.0.0",
"description": "Development",
"devDependencies": {
"connect": "^3.3.4",
"gulp": "^3.8.8",
"gulp-cache": "^0.2.4",
"gulp-clean": "^0.3.1",
"gulp-concat": "^2.4.2",
// ====== Include gulp
var gulp = require('gulp');
// ===== Include Plugins
var server = require('gulp-server-livereload');
var plumber = require('gulp-plumber');
var livereload = require('gulp-livereload');
var notify = require('gulp-notify');
var concat = require('gulp-concat');
var jade = require('gulp-jade');