Skip to content

Instantly share code, notes, and snippets.

<cfscript>
writeDump("dslfkj")
</cfscript>
<cfscript>
x = 60 * 1;
cfhttp(
method="GET",
charset="utf-8",
url="https://boxlang.ortusbooks.com/",
result="result",
timeout=x
) {}
<cfoutput>
<cftry>
#deserializeJSON("")#
<cfcatch>
<cfdump var="#cfcatch#" />
</cfcatch>
</cftry>
<cfscript>
x = 4615.65
a = x * 100 // some fraction numbers produce floating point arithmetic problem
dump(a);
writeoutput("<hr>")
b = floor(a) // round down (smaller)
dump(b)
b2 = floor(a * -1)
<cfscript>
x = 4615.65
a = x * 100 // some fraction numbers produce floating point arithmetic problem
dump(a)
writeoutput("<hr>")
b = floor(a) // round down (smaller)
dump(b)
b2 = floor(a * -1)
<cfscript>
x = 4615.65
a = x * 100 // some fraction numbers produce floating point arithmetic problem
dump(a)
writeoutput("<hr>")
b = floor(a) // round down (smaller)
dump(b)
b2 = floor(a * -1)
<cfscript>
a=123
dump(a)
</cfscript>
<cfscript>
x = 4615.65
a = x * 100 // some fraction numbers produce floating point arithmetic problem
dump(a)
writeoutput("<hr>")
b = floor(a) // round down (smaller)
dump(b)
<cfscript>
local.replaceMap = [
{ old: "[[[PERIODE]]]", new: strctData.period_code },
{ old: "[[[COCODE]]]", new: uCase(SCOOKIE.COCODE) },
{ old: "[[[RPTNAME]]]", new: qMaster.rptname },
{ old: "[[[LOG_USERID]]]", new: SCOOKIE.USER.UID },
{ old: "[[[PERIOD]]]", new: dateFormat(currentMonth, "yyyy/MM") }
];
for (local.item in local.replaceMap) {