This file contains 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
<cfsetting showdebugoutput="false"> | |
<cfcontent type="application/rss+xml"> | |
<cfcache action="cache" stripwhitespace="true" timeout="#createTimespan(0,3,0,0)#"> | |
<cfsilent> | |
<cfscript> | |
product = 1149; | |
versions = { | |
"10.0.0" = 7770, | |
"9.0.1" = 9288, | |
"9.0.0" = 9289, |
This file contains 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
<cffunction name="f"> | |
<cfset var q = false> | |
<cfquery name="q" datasource="bugNotifier"> | |
SELECT * | |
FROM user | |
</cfquery> | |
<cfreturn q> | |
</cffunction> | |
<cfdump var="#f()#"> |
This file contains 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> | |
function baseline(){ | |
var localData = {}; | |
localData.copiedBefore = structCopy(arguments); | |
dummyTest(argumentcollection=arguments); | |
localData.copiedAfter = structCopy(arguments); | |
localData.copiedBefore.d = 4; | |
localData.copiedAfter.d = 4; |
This file contains 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
// in the file system | |
theApp | |
service | |
component_to_call.cfc | |
mem | |
pages | |
handlers | |
calling.cfc | |
This file contains 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> | |
colours = deserializeJson('{"COLUMNS":["ID","MAORI","ENGLISH"],"DATA":[[1,"mangu","black"],[2,"whero","red"],[3,"ma","white"]]}', false); | |
// add a row with a slash | |
queryAddRow(colours); | |
querySetCell(colours, "id", 4); | |
querySetCell(colours, "maori", "kiko\rangi"); | |
querySetCell(colours, "english", "bl\ue"); | |
</cfscript> |
This file contains 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> | |
param name="URL.method" default="compare"; | |
param name="URL.lenDiff" type="boolean" default=false; | |
param name="URL.equal" type="boolean" default=false; | |
param name="URL.reset" type="boolean" default=false; | |
</cfscript> | |
<cfapplication name="comparator_#URL.method#_#URL.lenDiff#_#url.equal#" sessionmanagement="true"> | |
<cfscript> | |
param name="session.cumulative" default={count=0, total=0, mean=0}; | |
if (URL.reset){ |
This file contains 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{ | |
public void function configure(){ | |
variables.coldbox = { | |
appName = application.applicationName, // I'm not over the moon about this break of encapsulation, but equally I want to be as DRY as possible. I dunno why I need to specify this (again) | |
appHomeUrl = "http://#CGI.http_host##CGI.script_name#", | |
defaultEvent = "bug.main", | |
// TODO: get rid once I understand what's going on | |
HandlersIndexAutoReload = true, |
This file contains 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> | |
param name="URL.magnitude" default=0; | |
param name="URL.method" default="string"; | |
param name="URL.reset" type="boolean" default=false; | |
</cfscript> | |
<cfapplication name="createString_#URL.method#_#URL.magnitude#" sessionmanagement="true"> | |
<cfscript> | |
param name="session.cumulative" default={count=0, total=0, mean=0}; | |
if (URL.reset){ | |
session.cumulative = {count=0, total=0, mean=0}; |
This file contains 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
<cfset list = "1234567890"> | |
<cfoutput> | |
<table border="1"> | |
<thead> | |
<tr><th>operation</th><th>result</th></tr> | |
</thead> | |
<tbody> | |
<tr><td>list</td><td>#list#</td></tr> |
This file contains 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> | |
struct function compareStringToNumeric(string s){ | |
var result = { | |
asString = s, | |
asNumber = val(s) | |
}; | |
result.equal = !compare(result.asString, result.asNumber); | |
return result; | |
} |