Skip to content

Instantly share code, notes, and snippets.

View jcontonio's full-sized avatar
🏠
Working from home

Jay Contonio jcontonio

🏠
Working from home
View GitHub Profile

Keybase proof

I hereby claim:

  • I am jcontonio on github.
  • I am jcontonio (https://keybase.io/jcontonio) on keybase.
  • I have a public key ASDn5nJgcIZkqDAUDe1-bHcUQVla3RtwaW0fW6GE_Ff7ago

To claim this, I am signing this object:

@jcontonio
jcontonio / strategy.js
Last active August 29, 2015 14:09
Strategy
// Web server does this, hits an endpoint
// { type: 'saml', strategy: company.strategy }
var company = Company.findByDomain(__domain);
if (company) {
var strategy = company.strategy;
}
@jcontonio
jcontonio / .editorconfig
Created September 15, 2014 23:58
Mindspace EditorConfig Default
# EditorConfig helps developers define and maintain consistent
# coding styles between different editors and IDEs
# .editorconfig
root = true
[*]
# Change these settings to your own preference
indent_style = space
@jcontonio
jcontonio / hyphenated-class-names
Created September 15, 2014 23:33
For double-clicking of hyphenated words and class names
// For your user settings in Sublime Text 3
{
"word_separators": "./\\()\"'-:,.;<>~!@#$%^&*|+=[]{}`~?"
}
@jcontonio
jcontonio / equalheight.jquery.js
Created February 24, 2011 18:44
jQuery plugin to make columns of each row the same height
/**
* equalheight.jquery.js
* Make row elements all the height of the tallest item in the row
*
* Created by Jay Contonio on 2010-09-02.
* Modified on 2011-02-24 to add row functionality
*
* @example for rows with two columns @link http://fcc.gov/rulemaking (whenever it launches)
* $('.column').equalheight(2);
*/
@jcontonio
jcontonio / HFCXML.js
Created February 4, 2011 23:02
jQuery based XML document loading and event handling
/**
* Loads an XML document and broadcasts events on success or failure
* @author Jay Contonio
* @constructor
* @requires jQuery @link http://jquery.com/
* @param {String} xmlDocument The path to an XML document
*/
var XML = function(xmlDocument)
{
// Load the XML document, broadcasting an event on success of failure
@jcontonio
jcontonio / HFCCarousel.js
Created February 3, 2011 21:50
A carousel of paging thumbnails and content
/**
* HFCCarousel
* @fileoverview Carousel script to show content based on a paging set of thumbnails
* @author Jay Contonio - jcontonio.com
* @requires @link https://gist.github.com/810260
* @requires HFC Carousel Drupal module (could be easily adapted elsewhere)
* @see HFCSlider
* @example http://sabin.org/
*/
@jcontonio
jcontonio / HFCSlider.js
Created February 3, 2011 21:36
A jQuery based content slider for use with carousels and the like
/*
* HFCSlider
*
* @author Jay Contonio - jcontonio.com
* @constructor
* @example (as seen on @link:http://sabin.org/)
var settings = {
'controller': this,
'mask': this._carouselContainer.find('.thumbnails .mask'),
@jcontonio
jcontonio / spec.watchr.rb
Created November 16, 2010 15:55
Watchr script for running Jasmine BDD as autotest
# Run me with: $ watchr watchr.rb
def run(cmd)
puts(cmd)
system(cmd)
end
def run_all_tests
cmd = "ruby run_specs.rb -f n -c"
run(cmd)
end
@jcontonio
jcontonio / twitter.js
Created April 23, 2010 15:13
Javascript Twitter Statuses
/*------------------------------------------------------------------
Author: Jay Contonio - http://jcontonio.com/
Last change: 2009-03-13
Requires: jQuery
-------------------------------------------------------------------*/
// The username for the twitter feed
var user = "TWITTER_USERNAME";
// All our twitter data gets loaded into this array
var twitterData = new Array();