Skip to content

Instantly share code, notes, and snippets.

<cfscript>
private struct function splitTargetPath(required string targetPath, required array splittedSourcePath) {
local.splittedTargetPath = [];
local.indexPath = ""
local.startPos = 1;
for (local.token in arguments.splittedSourcePath) {
local.splitTokenLen = listLen(local.token.path, ".");
local.splitTokenPath = arrayToList(
<cfsetting enableCFOutputOnly="true">
<cffunction name="test" output=true>
foo #now()#<br>
<cfoutput>
bar #now()# <br>
</cfoutput>
</cffunction>
<cfset test()>
<cfsavecontent variable="myOutput">
test 1
<cfsetting enableCFOutputOnly="true">
test 2
<cfsetting enableCFOutputOnly="false">
test 3
</cfsavecontent>
test 4
<cfdump var="#myOutput#">
<cfscript>
thirdparty = {
a = 1,
b = 2
}
dump(thirdparty.keyArray());
</cfscript>
<cfscript>
thirdparty = {
a = 1,
b = 2
}
dump(thirdparty.keyArray());
</cfscript>
<cfscript>
thirdparty = {
a = 1,
b = 2
}
dump(thirdparty.keyArray().sort("text"));
</cfscript>
<cfscript>
thirdparty = {
a = 1,
b = 2
}
dump(thirdparty.keyArray().sort("text"));
</cfscript>
<cfscript>
xxx = {
"body": "",
"id": "3659-2A8F0BEC8242862B",
"year": "2019",
"make": "SEAT",
"model": "LEON",
"series": "MK3 (5F) (SE370)",
"fuelType": "PETROL",
<cfscript>
dates = {
testDate = "2026-05-01";
today = parseDateTime(now());
checkDate = parseDateTime("2026-05-01");
}
echo(dateCompare(now(), testDate, 'd'));