Skip to content

Instantly share code, notes, and snippets.

View alexortiz201's full-sized avatar

Alex Ortiz alexortiz201

View GitHub Profile
@alexortiz201
alexortiz201 / circleTransEffectHvr
Last active August 29, 2015 13:58
Class to do the a circle transition hover
#header .navToggle {height: 40px; width:40px; padding: 0; background: #043669; float:right; margin:35px 0 15px;
font-size: 32px;line-height:36px; color:#fff;
border: 2px solid #1589FF;
-webkit-border-radius: 90px;
-moz-border-radius: 90px;
border-radius: 90px;
transition: background-color 0.5s ease;
}
#header .navToggle:hover {cursor: pointer; background: #1589FF;}
@alexortiz201
alexortiz201 / stash.min.js
Created March 20, 2014 18:56
stash.min.js with a minor edit prevent IE8 from blowing up
// Stash v1.2.4 MIT/GPL2 @rezitech
(function(a,b,c){function k(a,c,e){var f=b[a],g;if(e){g=i(f);if(d(Array,g))c=g.concat(c);else if(d(Boolean,g))c=g&&!!c;else if(d(Date,g)&&!isNaN(c*1))c=new Date(g.getTime()+c*1);else if(d(Function,g)&&d(Function,c))c=new Function("return("+String(g)+").apply(this, arguments)&&("+String(c)+").apply(this, arguments)");else if(d(Number,g)&&!isNaN(c*1))c=g+c*1;else if(d(Object,g)&&d(Object,c))c=j(g,c);else if(d(RegExp,g)&&d(RegExp,c)){var k=/^\/([\W\w]*)\/([a-z]*?)$/,l=String(g).match(k),m=String(c).match(k);c=new RegExp(l[1]+m[1],l[2]+m[2])}else if(d(String,g))c=g+String(c);else return 2}c=h(c);if(f===c)return 2;return(b[a]=c)&&1}function j(){var a={},b=arguments,c=b.length,e=-1,f;while(++e<c)if(d(Object,b[e]))for(f in b[e])a[f]=d(Object,a[f])&&d(Object,b[e][f])?b.callee(a[f],b[e][f]):b[e][f];return a}function i(b){return(new Function("var a=arguments;h=a[0];return "+b)).apply(a,[f])}function h(b){var f=arguments.callee,h=[],i,j=-1,k;if(d(String,b))return e(b);if(b===undefined|
@alexortiz201
alexortiz201 / cssLoaderSample
Created March 20, 2014 18:51
CSS loader, used to load modular css before concatenating and minifying into one file
/******************************************************
Authored By: Alex Ortiz
last updated: March 5, 2014
This is the cssloader which gets files that will be
concat/min for prod
--------------
Sample CSS
@alexortiz201
alexortiz201 / sampleBufferFunction
Last active August 29, 2015 13:57
Buffer function for saving to DB, this prevents chattiness across the wire by waiting till user stops interacting with model.
RV.Profile.prototype.save = function () {
var delay = 3000,
self = this;
function saveProfile(args) {
self = args[0];
// cache
args[0].saveDB().then(function () {
RV.utils.profileLocalStore.updateNEW(self);