Skip to content

Instantly share code, notes, and snippets.

View isGabe's full-sized avatar
👨‍💻
:party-code:

Gabriel Luethje isGabe

👨‍💻
:party-code:
View GitHub Profile
@isGabe
isGabe / gulpfile.js
Last active August 29, 2015 13:57
Gulp.js
// Include gulp & plugins
var gulp = require('gulp'),
jshint = require('gulp-jshint'),
sass = require('gulp-sass'),
autoprefixer = require('gulp-autoprefixer'),
concat = require('gulp-concat'),
uglify = require('gulp-uglify'),
imagemin = require('gulp-imagemin'),
svgmin = require('gulp-svgmin'),
rename = require('gulp-rename'),
@isGabe
isGabe / SassMeister-input-HTML.html
Created March 13, 2014 19:34
Generated by SassMeister.com.
<header>header</header>
<nav>navigation</nav>
<article>article</article>
<footer>footer</footer>
@isGabe
isGabe / SassMeister-input.scss
Created March 14, 2014 22:58
Generated by SassMeister.com.
// ----
// Sass (v3.3.2)
// Compass (v1.0.0.alpha.18)
// ----
.thing {
border: {
color: #ccc;
width: 1px;
style: solid;
@isGabe
isGabe / designer.html
Created June 30, 2014 18:12
designer
<link rel="import" href="../core-icons/core-icons.html">
<link rel="import" href="../paper-icon-button/paper-icon-button.html">
<link rel="import" href="../paper-tabs/paper-tabs.html">
<link rel="import" href="../paper-tabs/paper-tab.html">
<polymer-element name="my-element">
<template>
<style>
#paper_icon_button {
@isGabe
isGabe / 0_reuse_code.js
Last active August 29, 2015 14:19
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
@isGabe
isGabe / SassMeister-input.scss
Created June 2, 2015 19:02
Generated by SassMeister.com.
// ----
// libsass (v3.2.4)
// ----
$font-family-base: "Roboto";
$font-family-base--lc: roboto;
$font-family-base--fallback: Arial, sans-serif;
$font-family-heading: "Roboto Condensed";
$font-family-heading--lc: robotocondensed;
$font-family-heading--fallback: "Arial Narrow", Arial, sans-serif;
@isGabe
isGabe / wp-bootstrap-walker-class.php
Created March 12, 2012 23:12 — forked from duanecilliers/wp-bootstrap-walker-class.php
Extended Walker Class for Twitter Bootsrap Navigation Wordpress Integration
<?php
class Bootstrap_Walker_Nav_Menu extends Walker_Nav_Menu {
function start_lvl( &$output, $depth ) {
//In a child UL, add the 'dropdown-menu' class
$indent = str_repeat( "\t", $depth );
$output .= "\n$indent<ul class=\"dropdown-menu\">\n";
@isGabe
isGabe / gist:3072378
Created July 8, 2012 19:16
Load jQuery fron Google CDN with local fallback - WordPress style
<?php
/*
**** Load jQuery from Google CDN if available, local fallback if not ****
** Place in your theme's functions.php or relevant file. Edit local jQuery path if needed.
** Works as-is with WordPress Bones Theme v1.2 https://github.com/eddiemachado/bones (replace wp_enqueue_script( 'jquery' ); on line 142
** reference: http://wp.tutsplus.com/tutorials/load-jquery-from-google-cdn-with-local-fallback-for-wordpress/
*/
@isGabe
isGabe / random.html
Created October 11, 2012 03:58
Scatter a group of elements randomly with Sass/Compass
<i class="star-1">1</i>
<i class="star-2">2</i>
<i class="star-3">3</i>
<i class="star-4">4</i>
<i class="star-5">5</i>
<i class="star-6">6</i>
<i class="star-7">7</i>
<i class="star-8">8</i>
<i class="star-9">9</i>
<i class="star-10">10</i>
@isGabe
isGabe / get_queried_object.php
Last active December 13, 2015 19:48
WordPress: get_queried_object() returns for different objects #snippet #WordPress
/**
* I wanted to know what get_queried_object() returns for different things in WordPress.
*
*/
// I use this to grab the array returned
// depending on what is being queried, it will return a different array of values
<?php
$object = get_queried_object();
var_dump($object);
?>