Skip to content

Instantly share code, notes, and snippets.

View dillonbailey's full-sized avatar

Dillon Bailey dillonbailey

View GitHub Profile
@dillonbailey
dillonbailey / useful-blendid-additional-task-task-config.js
Created September 22, 2017 05:38
Useful Additional Task for Blendid task-config.js
const path = require('path');
const ext = require('gulp-ext');
const notify = require('gulp-notify');
module.exports = {
html : true,
images : true,
fonts : true,
static : true,
svgSprite : true,
// For adding font icons to elements using CSS pseudo-elements
// http://jaydenseric.com/blog/fun-with-sass-and-font-icons
// Usage @include icon(before, email, false);
@mixin icon($position: before, $icon: false, $styles: true) {
@if $position == both {
$position: 'before, &:after';
}
// Either a :before or :after pseudo-element, or both, defaulting to :before
&:#{$position} {
@dillonbailey
dillonbailey / videowrapper.js
Created January 3, 2016 22:59
Simple Responsive YouTube iFrames
// This variable only captures iframes with a youtube video, extend as required...
var video = $("iframe[src^='https://www.youtube.com']");
if (video.length) {
video.each(function() {
$(this).wrap("<div class='videoWrapper'></div>");
});
}
@dillonbailey
dillonbailey / wp-rrssb-example.php
Last active August 29, 2015 14:26 — forked from robspangler/wp-rrssb-example.php
WordPress function to display Ridiculously Responsive Social Sharing Buttons. This assumes you're already including the necessary CSS and JS (http://kurtnoble.com/labs/rrssb/). - Updated with most recent release of RRSSB.
<?php
//Display for current post
echo rrssb();
//Display for a specific post (by post ID)
echo rrssb(13);
?>