Skip to content

Instantly share code, notes, and snippets.

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

Brian Feister brianfeister

🧙‍♂️
View GitHub Profile
@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">
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);
/*!
* ui-select
* http://github.com/angular-ui/ui-select
* Version: 0.8.3 - 2014-11-26T15:06:34.903Z
* License: MIT
*/
(function () {
"use strict";
@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";
@brianfeister
brianfeister / fabfile.py
Created December 9, 2013 19:17
Example fabric deploy tasks with git on prod server via github
from fabric.api import env, run, cd, task, get
from fabric.colors import *
from time import gmtime, strftime
import subprocess, os
global tag_time
tag_time = strftime("%Y-%m-%d-%H-%M-%S", gmtime())
global www_prod
www_prod = '/srv/www'
@brianfeister
brianfeister / phone-country-formats
Created November 24, 2013 00:42
Phone Codes & Formats By Country ISO code
var BFHPhoneFormatList = {
'AF': '+93 0dd ddd dddd',
'AL': '+355 0dd ddd ddd',
'DZ': '+213 0ddd dd dd dd',
'AS': '+1 (ddd) ddd-dddd',
'AD': '+376 ddddddddd',
'AO': '+244 ddd ddd ddd',
'AI': '+1 (ddd) ddd-dddd',
'AQ': '+672 ddddddddd',
'AG': '+1 (ddd) ddd-dddd',
@brianfeister
brianfeister / app.js
Created June 19, 2013 23:08
Marionette App Definition
this.theAppName = (function(Backbone, Marionette) {
var App;
App = new Marionette.Application;
App.addRegions({
headerRegion: "#header-region"
});
//assume that Backbone and $ are available as globals
//everything in this file will be interpretted as soon as the JS is
//loaded by the browser.
var MainRouter = require('./2-mainRouter'); //A Backbone Router
//doc ready
$(function () {
router = new MainRouter();
@brianfeister
brianfeister / constrained_popover_handlers.js
Created April 11, 2013 17:35
Handle various uses of constrained popover plugin
define( [
"jquery"
],
function( $ ) {
"use strict"; // jshint ;_;
/**
* Handler for popover trigger: mouseenter.
*
* @param {object} e JS event object
@brianfeister
brianfeister / constrained_popover.js
Last active December 16, 2015 02:49
Constrained popover to extend Bootstrap popover and make it intelligently switch orientation based on relative position of popup to container
if ( ! $.fn.constrained_popover ) {
// Constrained popover allows you to pass any DOM element in jQuery syntax and get a
// Bootstrap popover that changes orientation based on it's proximity to the container bounds
/* CONSTRAINED_POPOVER PUBLIC CLASS DEFINITION
* =========================================== */
var ConstrainedPopover = function ( element, options ) {
this.init('constrained_popover', element, options )