This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
require 'tinder' | |
require 'json' | |
require 'net/http' | |
# this will be something like "First L." | |
bot_name = "PERSON NAME" | |
campfire = Tinder::Campfire.new 'NAME_OF_CAMPFIRE_ACCOUNT' | |
campfire.login 'EMAIL_ADDRESS','PASSWORD' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*------------------------------------------------------------------ | |
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(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* 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'), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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/ | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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); | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For your user settings in Sublime Text 3 | |
{ | |
"word_separators": "./\\()\"'-:,.;<>~!@#$%^&*|+=[]{}`~?" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Web server does this, hits an endpoint | |
// { type: 'saml', strategy: company.strategy } | |
var company = Company.findByDomain(__domain); | |
if (company) { | |
var strategy = company.strategy; | |
} |
OlderNewer