Skip to content

Instantly share code, notes, and snippets.

View ebinnion's full-sized avatar

Eric Binnion ebinnion

View GitHub Profile
/* The Grid ---------------------- */
.lt-ie9 .row { width: 940px; max-width: 100%; min-width: 768px; margin: 0 auto; }
.lt-ie9 .row .row { width: auto; max-width: none; min-width: 0; margin: 0 -15px; }
.lt-ie9 .row.large-collapse .column,
.lt-ie9 .row.large-collapse .columns { padding: 0; }
.lt-ie9 .row .row { width: auto; max-width: none; min-width: 0; margin: 0 -15px; }
.lt-ie9 .row .row.large-collapse { margin: 0; }
.lt-ie9 .column, .lt-ie9 .columns { float: left; min-height: 1px; padding: 0 15px; position: relative; }
.lt-ie9 .column.large-centered, .columns.large-centered { float: none; margin: 0 auto; }
.equiwidth {
text-align: justify;
line-height: .5em;
padding-top: .25em;
line-height: 0;
* {
display: inline;
}
@ebinnion
ebinnion / bootstrap_wp_link_pages.php
Last active March 14, 2017 10:02
Extends the WordPress wp_link_pages function in order to style the page links with Bootstrap's classes.
@ebinnion
ebinnion / slider.js
Last active January 2, 2016 12:19
This gist demonstrates how to build a basic testimonials fade in and fade out.
jQuery(document).ready(function($){
var testimonials = $('aside .testimonials .testimonial');
var current = 0;
function slide(){
intv = setInterval(function() {
$(testimonials[current]).fadeOut('slow', function(){
if( typeof testimonials[current+1] != 'undefined') {
current += 1;
(function() {
'use strict';
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
notify: {
watch: {
options: {
title: 'Who watches the watchmen?',
<?php
function add_filters($tags, $function) {
foreach($tags as $tag) {
add_filter($tag, $function);
}
}
function roots_rewrites() {
/**
* Define helper constants
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
sass: {
dist: {
options: {
sourceComments: 'map',
includePaths: require('node-bourbon').includePaths,
<?php
function foundation_pagination() {
global $wp_query;
$big = 999999999;
$links = paginate_links( array(
'base' => str_replace( $big, '%#%', esc_url( get_pagenum_link( $big ) ) ),
'format' => '?paged=%#%',
<?php
/* From https://www.usps.com/send/official-abbreviations.htm */
$us_state_abbrevs_names = array(
'AL'=>'ALABAMA',
'AK'=>'ALASKA',
'AS'=>'AMERICAN SAMOA',
'AZ'=>'ARIZONA',
'AR'=>'ARKANSAS',