Skip to content

Instantly share code, notes, and snippets.

<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>
@RichardDavies
RichardDavies / proxy.cfm
Created November 18, 2009 19:50
After the Deadline ColdFusion proxy
<!--- 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
@RichardDavies
RichardDavies / jquery.fitted.js
Created February 24, 2011 23:12
Enhancements to Fitted jQuery plugin to avoid form elements and additional links. My changes are identified by the 'Begin CGIS change' comments.
/**
* 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 / Main.cfc
Created March 30, 2011 20:48
Reactor factory with autowire support (for use with ColdBox)
<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 / feed2js.js
Created October 11, 2011 17:46
Alternate JavaScript implementation of Feed2JS using the Google Feed API
/**
* 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>