Skip to content

Instantly share code, notes, and snippets.

View trycf-gist-1656404532444-a8a600b4-e419-48b7-373b-4943e691cd91.cfm
<cfscript>
tmpStruct = {
'888' : {
'66': {
'name': 'test'
}
},
'77' : {
'3': {
'name': 'test'
View trycf-gist-1656404532444-a8a600b4-e419-48b7-373b-4943e691cd91.cfm
<cfscript>
tmpStruct = {
'888' : {
'66': {
'name': 'test'
}
},
'77' : {
'3': {
'name': 'test2'
View trycf-gist-1656404532444-a8a600b4-e419-48b7-373b-4943e691cd91.cfm
<cfscript>
tmpStruct = {
'888' : {
'66': {
'name': 'test'
}
},
'77' : {
'3': {
'name': 'test2'
View trycf-gist-1656404532444-a8a600b4-e419-48b7-373b-4943e691cd91.cfm
<cfscript>
tmpStruct = {
'888' : {
'66': {
'name': 'test'
}
},
'77' : {
'3': {
'name': 'test'
View trycf-gist-1656404532444-a8a600b4-e419-48b7-373b-4943e691cd91.cfm
<cfscript>
tmpStruct = {
'888' : {
'66': {
'name': 'test'
}
},
'77' : {
'3': {
'name': 'test'
View trycf-gist-1656402089610-5156d50d-b770-45f5-af7a-28dd33830928.cfm
<cfscript>
stCount = {
'1': 0,
'2': 0,
'3': 0,
'4': 0
}
loop from=1 to=1000 index="i" {
subjectIndex = randRange(1,4,'SHA1PRNG');
View trycf-gist-1656396846508-2689d629-0ab0-6cd0-1a48-e3e406debb84.cfm
<cfscript>
stCount = {
'1': 0,
'2': 0,
'3': 0,
'4': 0
}
loop from=1 to=1000 index="i" {
subjectIndex = randRange(1,4,'CFMX_COMPAT');
View trycf-gist-1656349243039-ed6ce053-5d6a-bf23-f245-28e845760942.cfm
<cfset item = {
"key": "value",
"key2": "OtherValue"
}>
<cfloop collection="#item#" item="stuff">
<cfdump var="#stuff#">
</cfloop>
View trycf-gist-1656348192748-ef1e8e1b-dc5f-b500-c6c5-dbf9b23f7107.cfm
<cfscript>
function auditor(function transformer) {
return function(data) {
var message = transformer(data);
echo("logging: #message#<hr>");
}
}
function structHandler(struct data) {
return structKeyList(data);
}