Skip to content

Instantly share code, notes, and snippets.

View sx's full-sized avatar

Steve Stedman sx

  • X.Commerce
  • Austin, Texas
View GitHub Profile
@sx
sx / .jshintrc
Created December 5, 2012 01:48 — forked from haschek/.jshintrc
JSHint Configuration, Strict Edition
{
// --------------------------------------------------------------------
// JSHint Configuration, Strict Edition
// --------------------------------------------------------------------
//
// This is a options template for [JSHint][1], using [JSHint example][2]
// and [Ory Band's example][3] as basis and setting config values to
// be most strict:
//
// * set all enforcing options to true
@sx
sx / jquery.ba-queuefn.js
Created September 18, 2012 13:16 — forked from cowboy/jquery.ba-queuefn.js
jQuery queueFn: add a $.fn method or function onto the effects queue
/*!
* jQuery queueFn - v0.5 - 06/18/2010
* http://benalman.com/
*
* Copyright (c) 2010 "Cowboy" Ben Alman
* Dual licensed under the MIT and GPL licenses.
* http://benalman.com/about/license/
*/
(function($){
@sx
sx / screening.js
Created November 3, 2011 17:45 — forked from rmurphey/screening.js
// 1: how could you rewrite the following to make it shorter?
if (foo) {
bar.doSomething(el);
} else {
bar.doSomethingElse(el);
}