Skip to content

Instantly share code, notes, and snippets.

View brianfeister's full-sized avatar
🧙‍♂️

Brian Feister brianfeister

🧙‍♂️
View GitHub Profile
@brianfeister
brianfeister / gist:6ddc8f2be5f3385c5882
Created May 12, 2014 20:17
dr-svg-sprites (with responsive config option)
/*
* dr-svg-sprites
*
*
* Copyright (c) 2013 drdk
* Licensed under the MIT license.
*/
"use strict";
/*!
* ui-select
* http://github.com/angular-ui/ui-select
* Version: 0.8.3 - 2014-11-26T15:06:34.903Z
* License: MIT
*/
(function () {
"use strict";
setTimeout( function() { // code for 1st popup goes here }, 500);
setTimeout( function() { // code for 2nd popup goes here }, 1000);
setTimeout( function() { // code for 3rd popup goes here }, 1500);
@brianfeister
brianfeister / designer.html
Last active August 29, 2015 14:11
designer
<link rel="import" href="../ace-element/ace-element.html">
<link rel="import" href="../core-animated-pages/core-animated-pages.html">
<link rel="import" href="../core-animated-pages/transitions/hero-transition.html">
<link rel="import" href="../core-animated-pages/transitions/cross-fade.html">
<link rel="import" href="../core-animated-pages/transitions/slide-down.html">
<link rel="import" href="../core-animated-pages/transitions/slide-up.html">
<link rel="import" href="../core-animated-pages/transitions/tile-cascade.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-scroll-header-panel/core-scroll-header-panel.html">
'use strict';
var app = angular.module('demo', ['ngSanitize', 'ui.select']);
app.controller('DemoCtrl', function($scope, $http, $timeout) {
$scope.disabled = undefined;
$scope.searchEnabled = undefined;
$scope.enable = function() {
$scope.disabled = false;
@brianfeister
brianfeister / wp-bootstrap-walker-class.php
Created July 19, 2012 16:18 — forked from isGabe/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";
@brianfeister
brianfeister / Bootstrap Sub-theme Engine Vars
Last active October 12, 2015 12:37
Per-theme variable declarations for sub-theming engine for via Twitter Bootstrap
// --------------------------------------------------
//
// SUB-THEME-SPECIFIC VARIABLES
//
// --------------------------------------------------
// Home
// -------------------------
@home-sub-theme-PrimaryColor: @primaryColor;
@home-sub-theme-AccentColor: @accentColor;
/**!
* AngularJS file upload/drop directive and service with progress and abort
* @author Danial <danial.farid@gmail.com>
* @version 4.2.1
*/
(function () {
var key, i;
function patchXHR(fnName, newFn) {
window.XMLHttpRequest.prototype[fnName] = newFn(window.XMLHttpRequest.prototype[fnName]);
@brianfeister
brianfeister / gist:4640642
Last active December 11, 2015 18:19
Function for custom display of Timely All-in-One-Calendar long date
/* ========================================================================================
*
* function for custom date range display of Timely ai1ec events
*
* @param $event - you must pass Timely's $event object to this function
* @param $date_format - pass a PHP valid date format for Month & Day (not year!)
* @param $time_format - pass a PHP valid time format, pass FALSE to omit time from output
* @param $echo - defaults to true, in order to return pass FALSE for $echo parameter
* ======================================================================================== */
@brianfeister
brianfeister / Bootstrap Sub-theme Engine Function
Last active December 16, 2015 02:48
Bootstrap Sub-theme Iterating Function
//
// Mixins to build sub-themes
// --------------------------------------------------
// call this to build a new theme and create all needed variables in _sub-themes.less
.setThemeColors( @themeName ) {
(~"body.@{themeName}") {
color: ~"@{@{themeName}-PrimarySubdued}";
background-color: ~"@{@{themeName}-AccentColor}";
a {