Skip to content

Instantly share code, notes, and snippets.

View jsieber's full-sized avatar

John Sieber jsieber

  • BlueLine Development
  • Missoula, Montana
View GitHub Profile
@stevewithington
stevewithington / dsp_custom_search.cfm
Last active March 19, 2021 16:25
Mura CMS: Custom Search Example
<cfoutput>
<div>
<form action="#$.content('url')#?keywords=#$.event('keywords')#">
<dl>
<dt>Keywords</dt>
<dd><input type="text" name="keywords" value="#HTMLEditFormat($.event('keywords'))#" /></dd>
<dd><input type="submit" value="Search" /></dd>
</dl>
@stevereich
stevereich / formatPhone.cfc
Created September 28, 2012 08:20
Function to Format Phone Number with RegEx and Coldfusion
<cfscript>
component output="false" {
public formatPhone function init(){
return this;
}
public string function formatPhone(required string phoneNumber)
description="Strips out anything that isn't a number and then takes the first 10 digits and formats them to our spec: (404) 555-1212"
output="false"
@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)
@smebberson
smebberson / .gitignore
Created March 9, 2012 11:20
Facebook oAuth and Graph API example
.DS_Store
WEB-INF