Skip to content

Instantly share code, notes, and snippets.

View erwstout's full-sized avatar
🧨

Eric Stout erwstout

🧨
View GitHub Profile
@erwstout
erwstout / SassMeister-input-HTML.html
Created April 1, 2015 02:34
Generated by SassMeister.com.
<div class="container">
<div class="row hero"></div>
</div>
@erwstout
erwstout / SassMeister-input.scss
Created October 20, 2015 19:44
Generated by SassMeister.com.
// ----
// libsass (v3.2.5)
// ----
//colors
$red: #e4002b;
$drk-red: #b4002b;
$maroon: #76232f;
$cream: #b0aa7e;
$baby-poop: #b5bd00;
@erwstout
erwstout / header.php
Created November 10, 2015 06:04
Header
<!DOCTYPE html>
<!--[if lt IE 7 ]> <html class="ie ie6 no-js" <?php language_attributes(); ?>> <![endif]-->
<!--[if IE 7 ]> <html class="ie ie7 no-js" <?php language_attributes(); ?>> <![endif]-->
<!--[if IE 8 ]> <html class="ie ie8 no-js" <?php language_attributes(); ?>> <![endif]-->
@erwstout
erwstout / single.php
Created November 10, 2015 06:04
Single.php
<?php get_header(); ?>
<?php
if (have_posts()) : while (have_posts()) : the_post();
$boxAd = get_post_meta($post->ID, 'box_ad', $single = true);
@erwstout
erwstout / index.php
Created November 10, 2015 06:05
index
<?php get_header(); ?>
<?php
if(have_posts()) : the_post();
$boxAd = get_post_meta($post->ID, 'box_ad', $single = true);
?>
<article <?php post_class() ?> id="post-<?php the_ID(); ?>">
<!-- Testing Featured Image -->
@erwstout
erwstout / gulpfile.js
Created January 15, 2016 16:22
Example Gulpfile
// Theme Specific Variables
var theme = 'your-theme-name';
// Include gulp
var gulp = require('gulp');
// Include Our Plugins
var jshint = require('gulp-jshint');
var sass = require('gulp-sass');
var concat = require('gulp-concat');
@erwstout
erwstout / gist:564021be25efb681997d
Last active February 9, 2016 17:29
Install Prelude Gulp Packages (Without Prelude)
npm install gulp jshint gulp-jshint gulp-sass gulp-concat gulp-uglify gulp-rename gulp-imagemin imagemin-pngquant gulp-cssnano gulp-autoprefixer gulp-zip --save
@erwstout
erwstout / flexvideo.scss
Created January 25, 2016 18:34
Flex Video
// Flex Video Based on Zurb Foundation
.flex-video {
position: relative;
height: 0;
padding-bottom: 75%;
margin-bottom: 1rem;
overflow: hidden;
}
.flex-video iframe,
@erwstout
erwstout / 0_reuse_code.js
Created February 2, 2016 16:26
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@erwstout
erwstout / equalize.js
Last active May 17, 2016 21:28
Equalize Elements on load and window resize
var equalize = function() {
var max = Math.max.apply(null,
$('.equalize').css('height', 'auto').map(function() {
return $(this).outerHeight();
})
);
$('.equalize').outerHeight(max);
};
// equalize