A Pen by David Hemphill on CodePen.
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() { | |
'use strict'; | |
var gulp = require('gulp'), | |
gutil = require('gulp-util'), | |
dot = require('gulp-dot'), | |
less = require('gulp-less'), | |
sass = require('gulp-sass'), | |
rm = require('rimraf'), | |
reload = require('gulp-livereload'), |
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
{ | |
"name": "CourtneyIsACoolHead", | |
"version": "1.0.0", | |
"devDependencies": { | |
"grunt": "~0.4.1", | |
"grunt-contrib-sass": "~0.6.0", | |
"grunt-contrib-watch": "~0.5.3" | |
} | |
} |
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
module.exports = function(grunt) { | |
// 1. All configuration goes here | |
grunt.initConfig({ | |
pkg: grunt.file.readJSON('package.json'), | |
watch: { | |
options: { | |
livereload: true, | |
}, | |
livereload: { |
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
// ---- | |
// Sass (v3.3.0.rc.1) | |
// Compass (v0.13.alpha.10) | |
// ---- | |
/* | |
A slightly more automated approach to BEM modifier classes: | |
using '&' parent selector interpolation, modifiers extend their bases, | |
so that HTML markup requires only the modifier class not the base *and* modifier | |
*/ |
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
curl -L -s http://davehe.mp/zTLk | bash |
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
This is how you do rotators in Jonah CMS |
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
$.fn.timeBased = function ( options ) { | |
options = $.extend( {}, $.fn.timeBased.defaults, options ); | |
return this.each( function ( i, el ) { | |
var $el = $( el ); | |
var dStart = Date.parse( $el.data( "start" ) ); | |
var dEnd = Date.parse( $el.data( "end" ) ); | |
var state = "uninitialized"; |
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
jQuery.fn.toggle = function( fn, fn2 ) { | |
// Don't mess with animation or css toggles | |
if ( !jQuery.isFunction( fn ) || !jQuery.isFunction( fn2 ) ) { | |
return oldToggle.apply( this, arguments ); | |
} | |
// migrateWarn("jQuery.fn.toggle(handler, handler...) is deprecated"); | |
// Save reference to arguments for access in closure | |
var args = arguments, | |
guid = fn.guid || jQuery.guid++, | |
i = 0, |