Skip to content

Instantly share code, notes, and snippets.

Jarid Margolin jaridmargolin

Block or report user

Report or block jaridmargolin

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@jaridmargolin
jaridmargolin / conversion_async_loader.js
Created Feb 17, 2016
Async script loader for conversion_async.js
View conversion_async_loader.js
!function(e,n,t,a,o,c,r,s,i){e[o]||(r=e[o]=function(){r.track=arguments},
c=n.createElement(t),c.src=a,c.async=!0,c.addEventListener('load',function(){
r.track&&e[o].apply(this,r.track)}),s=n.getElementsByTagName(t)[0],s.parentNode.insertBefore(c,s))
}(window,document,'script','//www.googleadservices.com/pagead/conversion_async.js',
'google_trackConversion');
@jaridmargolin
jaridmargolin / utils-decorate.js
Created Jun 7, 2014
underscore.js decorator method
View utils-decorate.js
/*!
* utils.js
*
* Copyright (c) 2014
*/
define([
'underscore',
],function (_) {
@jaridmargolin
jaridmargolin / analytics.js
Created May 14, 2014
AMD google analytics compatible with almond.js
View analytics.js
/*!
* analytics.js
*
* Copyright (c) 2014
*/
define([
'require',
'env'
], function (require, env) {
@jaridmargolin
jaridmargolin / tbl.less
Last active Aug 29, 2015
A column implementation using tables built to use with bootstrap.
View tbl.less
/*!
* tbl.less
* Version: 1.0
*/
/*** TABLE OF CONTENTS ***
*
* 1. Mixins
* 2. tbl
*/
@jaridmargolin
jaridmargolin / utils-deep.js
Last active Aug 29, 2015
Utils - deep extend and deep merge.
View utils-deep.js
define([
'underscore'
], function (_) {
// ----------------------------------------------------------------------------
// utils
// ----------------------------------------------------------------------------
var utils = {};
View intro.js
;(function (id, name, context, definition) {
// --------------------------------------------------------------------------
// Dependencies
//
// This is an attempt to make this library compatible with multiple module
// formats. Other UMD implementations do not take into account dependencies:
// Example: https://github.com/ForbesLindesay/umd/blob/master/template.js
//
// **NOTE: Named AMD modules are more suitable for libraries as it provides
View measure-width.js
//
// Get text width of a specified element.
//
function measureWidth(el, str) {
// Create dummy elem
var div = documtent.createElement('div');
// Append
document.body.appendChild(div);
You can’t perform that action at this time.