Skip to content

Instantly share code, notes, and snippets.

View JamoCA's full-sized avatar

James Moberg JamoCA

View GitHub Profile
@stevereich
stevereich / googleURL.cfc
Created September 27, 2012 05:43
Coldfusion Functions for Google URL Shortener API
<cfscript>
component output="false" {
public googleURL function init(apiKey)
description="Initialize this CFC as an object"
{
variables.apiKey = arguments.apiKey;
return this;
}
public string function ShortenURL(required string url)
@coldfusionPaul
coldfusionPaul / gist:3779416
Created September 25, 2012 01:16
coldfusion G11N

The Basics of Building a Globalized ColdFusion Application

What is Globalization?

The process of making an application ready for global usage is globalization or G11N (for the 11 letters between the G and the N in globalization). Basically globalization consists of two steps, internationalization or I18N (for the 18 letters between the I and N in internationalization) and localization or L11N (for the 10 letters between L and N in localizatio—if you're sensing a pattern here, yes there is, people working in this field are particularly fond of numeronyms). The atomic units for globalization are locales. Locales are the most important piece of G11N.

Locales

Locales are languages and calendars; date, number, and currency

@gsherman
gsherman / IIS7: rewrite cookies to be httponly
Created January 20, 2011 22:40
a rewriting rule that adds "HttpOnly" to any out going "Set-Cookie" headers
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<!--
Rewrite any outgoing "Set-Cookie" headers to be "HttpOnly"
Requires the IIS7 URL Rewrite Module, available from: http://www.iis.net/download/urlrewrite
-->
<rewrite>
<outboundRules>
<rule name="Add HttpOnly" preCondition="No HttpOnly">
/*!
* jQuery TextChange Plugin
* http://www.zurb.com/playground/jquery-text-change-custom-event
*
* Copyright 2010, ZURB
* Released under the MIT License
*/
(function ($) {
$.event.special.textchange = {
@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