Skip to content

Instantly share code, notes, and snippets.

<cfscript>
asd(1)
function asd(a, b) {
dump(arguments.b)
dump(isdefined("arguments.b"))
}
</cfscript>
<cfset scdata.SHUSER = 1 />
<cfset scdata.DBSEC = 1 />
<cfset scdata.SQLTOOL = 1 />
<cfset jsAddon=SerializeJSON(scdata)>
<cfset jsAddon=Encrypt(jsAddon,reverse("5uNf15h4dd0n" & 'GNDFW92J6IYZVIB6DLYNQ'),"CFMX_COMPAT","Hex")>
<cfdump var="#jsAddone#">
<cfscript>
threadSize = 200;
threadList = [];
for( i=1; i <= threadSize; i++ ){
threadName = "thread_test_#i#_" & replace(createUUID(), "-", "", "all");
threadList.append(threadName);
thread action="run" name="#threadName#" {
thread.started = true;
<cfscript>
dump( "hello, world" );
</cfscript>
<cfscript>
rc = {
"key0": "hello%252520world87%%20test",
"key1": "hello%252520world",
"key2": "hello%2520world 87%25",
"key2": "hello%2520world 87%"
}
rc.each( (key, value ) => {
if ( !isNull( value ) && isSimpleValue( value ) ) {
<cfscript>
rc = {
"key0": "hello%252520world87%%20test",
"key1": "hello%252520world",
"key2": "hello%2520world 87%25"
}
rc.each( ( key, value ) => {
if ( !isNull( value ) && isSimpleValue( value ) ) {
<cfscript>
local.n = 854.400000000001;
writedump(numberFormat( val( local.n ), "0" ));
</cfscript>
<cfscript>
req=getPageContext().getHttpServletRequest();
req.setAttribute("Helloworld-Shanmukh","sorglos");
dump(req.getAttributeNames());
</cfscript>