Skip to content

Instantly share code, notes, and snippets.

@RichardDavies
RichardDavies / feed2js.js
Created Oct 11, 2011
Alternate JavaScript implementation of Feed2JS using the Google Feed API
View feed2js.js
/**
* Feed2JS using the Google Feed API
*
* Inspired by Feed2JS (http://feed2js.org)
*
* Author: Richard Davies (http://www.richarddavies.us)
*
* Example Usage:
* <!-- Requires the Google Loader and API key from http://code.google.com/apis/loader/signup.html -->
* <script src="https://www.google.com/jsapi?key=YOUR_KEY_HERE"></script>
@RichardDavies
RichardDavies / Main.cfc
Created Mar 30, 2011
Reactor factory with autowire support (for use with ColdBox)
View Main.cfc
<cfcomponent displayname="Application global implicit events handler" extends="coldbox.system.EventHandler" output="false" autowire="true">
<!--- Autowire dependencies --->
<cfproperty name="reactor" inject="ocm" scope="instance" /> <!--- Inject Reactor factory from ColdBox cache --->
<cfset Instance = StructNew() />
<cffunction name="onAppInit" returntype="void" output="false">
<cfargument name="event" required="true" />
@RichardDavies
RichardDavies / jquery.fitted.js
Created Feb 24, 2011
Enhancements to Fitted jQuery plugin to avoid form elements and additional links. My changes are identified by the 'Begin CGIS change' comments.
View jquery.fitted.js
/**
* Fitted: a jQuery Plugin
* @author: Trevor Morris (trovster)
* @url: http://www.trovster.com/lab/code/plugins/jquery.fitted.js
* @documentation: http://www.trovster.com/lab/plugins/fitted/
* @published: 11/09/2008
* @updated: 29/09/2008
* @requires: jQuery v.1.2.6 or above
*
* @notes:
@RichardDavies
RichardDavies / proxy.cfm
Created Nov 18, 2009
After the Deadline ColdFusion proxy
View proxy.cfm
<!--- After the Deadline Proxy Script
ColdFusion port by Richard Davies - http://www.richarddavies.us
Version 1.0
--->
<cfsetting showdebugoutput="false" />
<!---
You get the option of hardcoding your API key here. Do this if you don't want people seeing
View ObjectToExcel
<cfcomponent output="false">
<cffunction name="init" access="public" returntype="any" hint="I am the initializer." output="false">
<cfreturn this/>
</cffunction>
<cffunction name="setAutoFilter" returntype="any">
<cfargument name="autoFilter" default="0">
<cfset variables.autoFilter = arguments.autoFilter>