View trycf-gist-1679323463659-36a4468f-b58c-e9e7-ad31-93426f49789a.cfm
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> | |
arrayDept = [{"id" : 1, "title" : "test 1"}, {"id" : 2, "title" : "test 2"}]; | |
arrayGroup = [{"id" : 2, "title" : "test 2"}, {"id" : 3, "title" : "test 3"}]; | |
// arrayDept.append(arrayGroup, true); | |
loop array=arrayGroup index="variables.index" { | |
if (arrayDept.find(function(dept) {})) { |
View trycf-gist-1679306443078-79ee57d3-f8b5-e17d-6aa4-c94c868476d8.cfm
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 aa = 111.222222 /> | |
<cfoutput> | |
#lsNumberFormat(-1234.5678, "_________")#<br /> | |
#lsNumberFormat(-1234.5678, "_________.___")#<br /> | |
#lsNumberFormat(1234.5678, "_________")#<br /> | |
#lsNumberFormat(1234.5678, "_________.___")#<br /> | |
#lsNumberFormat(1234.5678, "$_(_________.___)")#<br /> | |
#lsNumberFormat(-1234.5678, "$_(_________.___)")#<br /> | |
#lsNumberFormat(1234.5678, "+_________.___")#<br /> | |
#lsNumberFormat(aa, "-_________.__")#<br /> |
View trycf-gist-1679308333973-b811f308-0dfd-ae70-97ae-d62cbe1bc377.cfm
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> | |
numberList = 'apple,orange,banana'; | |
numberList1 = 'apple,orange1,banana'; | |
threeOrMore = listFilter(numberList, function(item){ | |
return listfind(numberList1, item, ',', false); | |
}); | |
writedump(threeOrMore); | |
</cfscript> |
View trycf-gist-1679114099376-341f353f-f09d-2f76-d2a6-a73bce9cf1a3.cfm
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> | |
rsGraph16 = queryNew("range_des,perc", "int,int"); | |
</cfscript> | |
<cfchart chartHeight = "250" | |
chartWidth = "670" | |
scaleFrom = "0" | |
scaleTo = "1" |
View trycf-gist-1679085805129-68505d01-4ce9-e88f-c2d8-9ff43192a7ab.cfm
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> | |
since = dateAdd("h", -12, now()); | |
now = now(); | |
isFresh = now > since; | |
echo(since); | |
echo(now); | |
echo(isFresh); |
View trycf-gist-1679076955008-f414a72b-3033-be5f-4bbb-ba2f6cb68473.cfm
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> | |
writeDump(toString(toBinary("c2VsRUNUIHRhYmxlX3NjaGVtYSBhcyAnRGF0YWJhc2UnLENPTFVNTl9OQU1FIEFTICdDb2x1bW5OYW1lJyAsVEFCTEVfTkFNRSBBUyAnVGFibGVOYW1lJyBGUk9NIElORk9STUFUSU9OX1NDSEVNQS5DT0xVTU5TIFdIRVJFIENPTFVNTl9OQU1FIExJS0UgJyVleHAlJyBPUkRFUiBCWSBUYWJsZU5hbWUgLENvbHVtbk5hbWUK"))); | |
</cfscript> |
View trycf-gist-1679076324463-882d859d-f203-bd6d-a96c-f670b63d0fac.cfm
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 getDTokenTime = now() /> | |
<cfset getIXWebTokenTimeout = .001 /> | |
<cfif dateDiff( 'n', getDTokenTime, now() ) gte getIXWebTokenTimeout> | |
</cfif> |
View trycf-gist-1679068073719-84830ac7-6e71-09ba-b147-a37756db10c8.cfm
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> | |
ts = createTimespan(1,2,3,4) | |
writeDump([ | |
ts.getClass().getName(), | |
ts.toString(), | |
ts.castToDoubleValue(), | |
arrayMap(ts.getClass().getMethods(), (method) => method.getName()) | |
]) |
View trycf-gist-1679065797777-c708a77e-816e-b233-235d-6705ce1a6637.cfm
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> | |
writeDump([ | |
createTimeSpan(1,0,0,0), | |
createTimeSpan(0,0,1440,0) | |
]) | |
ts = createTimeSpan(0,0,1440,0) | |
writeDump(ts.getClass().getName()) | |
</cfscript> |
View trycf-gist-1679065797777-c708a77e-816e-b233-235d-6705ce1a6637.cfm
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> | |
writeDump([ | |
createTimeSpan(1,0,0,0), | |
createTimeSpan(0,0,1440,0) | |
]) | |
</cfscript> |
NewerOlder