This file contains hidden or 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
<!--- Include our functional programming methods. ---> | |
<cfinclude template="./functional_udfs.cfm" /> | |
<!--- | |
Start a CFScript block. Closures can only be used inside | |
of CFScript due to the syntax required to define them. | |
---> | |
<cfscript> | |
This file contains hidden or 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
<cfscript> | |
// None of the following three return() statements work when used | |
// in conjunction with implicit-notations for ARRAY, STRUCT, and | |
// CLOSURE. Must return "( )" from return statement in order to | |
// parse properly. | |
function returnImplictNotation(){ | |
return( [ ] ); |
This file contains hidden or 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
<cfscript> | |
// I take an API key and a content value and generate a hashed- | |
// message authenticate code using MD5 so as to be able to | |
// authenticate that the message is from a trusted source. | |
function md5Digest( content, apiKey ){ | |
// We need to hash the content using the MD5 algorithm. Let's | |
// define a key specification for the HmacMD5 alrorithm using |
This file contains hidden or 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
<!--- | |
Create an XML document on which to test new XPath 2.0 | |
functionality support. | |
---> | |
<cfxml variable="bookData"> | |
<books> | |
<book id="101" rating="4.5"> | |
<title>Muscle: Confessions of an Unlikely Bodybuilder</title> | |
<author>Samuel W. Fussell</author> |
This file contains hidden or 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
component | |
output="false" | |
hint="I define the application settings and event handlers." | |
{ | |
// Define our standard Application settings. | |
this.name = hash( getCurrentTemplatePath() ); | |
// I'm setting the Application Timeout to be SUPER LOW since I |
This file contains hidden or 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
<cfscript> | |
// NOTE: Script tags added purely for Gist color-coding only. | |
component | |
output="false" | |
hint="I define the application settings and event handlers." | |
{ | |
// Define our standard Application settings. |
This file contains hidden or 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
<cfscript> | |
// NOTE: CFScript tags add purely for Gist color-coding. Remove. | |
component | |
output="false" | |
hint="I define the application settings and event handlers." | |
{ | |
// Define our standard Application settings. |
This file contains hidden or 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
<cfscript> | |
// NOTE: The CFScript is purely for Gist color-coding. Remove. | |
component | |
output="false" | |
hint="I define the application settings and event handlers." | |
{ | |
// Define the application settings. |
This file contains hidden or 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
<cfscript> | |
// NOTE: The CFScript tag is added purely for Gist color-coding. | |
component | |
output="true" | |
hint="I define the application settings and event handlers." | |
{ | |
// Define the application settings. |