Skip to content

Instantly share code, notes, and snippets.

View michaelgilley's full-sized avatar

Michael Gilley michaelgilley

View GitHub Profile
@michaelgilley
michaelgilley / yt-cats.json
Last active August 29, 2015 13:57
YT Categories
{
"app:categories": {
"-xmlns:app": "http://www.w3.org/2007/app",
"-xmlns:atom": "http://www.w3.org/2005/Atom",
"-xmlns:yt": "http://gdata.youtube.com/schemas/2007",
"-fixed": "yes",
"-scheme": "http://gdata.youtube.com/schemas/2007/categories.cat",
"atom:category": [
{
"-term": "Film",
module.exports = function(grunt) {
grunt.initConfig({
/*
copy header-template.html which will have placeholders for injecting css,js
*/
copy: {
main: {
files: [
@michaelgilley
michaelgilley / foundation_structure_nav.html
Last active December 17, 2015 13:29
Example of how to build a Top Bar navigation for the Foundation 4.x framework in Expression Engine using Structure.
<nav class="top-bar">
<ul class="title-area">
<li class="name"></li>
<li class="toggle-topbar menu-icon">
<a href="#"><span>Menu</span></a>
</li>
</ul>
<section class="top-bar-section">
{exp:structure:nav mode="full" css_id="nav-drop-pages" css_class="left" has_children_class="has-dropdown"}
<script>
@michaelgilley
michaelgilley / _compass-retina-sprites.scss
Last active December 14, 2015 05:08
Use for best regular and retina (HD) sprites in a Compass project. To work correctly use two sets of the same sprite images in separate directories within your project images path. (Default is "regular" and "retina" within a singular "sprites" directory.) Both image sets should be identical in naming and composition with the retina images 200% l…
$regularSpritePath: "sprites/regular" !default;
$retinaSpritePath: "sprites/retina" !default;
$spriteHoverClass: ":hover" !default;
$regular: sprite-map($regularSpritePath + "/*.png", $layout: smart);
$retina: sprite-map($retinaSpritePath + "/*.png", $layout: smart);
$sprite-regular-url: sprite-url($regular);
$sprite-retina-url: sprite-url($retina);