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> | |
// CFScript version | |
var objDto = { | |
"zuzu": "string", | |
"opa": "string", | |
"nome": "string", | |
} | |
writedump(objDto); | |
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> | |
// create the query with safe col names | |
qry = QueryNew("test_test,colTwo"); | |
queryaddrow( qry ); | |
querysetcell( qry, "test_test", 123 ); | |
querysetcell( qry, "colTwo", "abc" ); | |
qry.setColumnNames(["test test","colTwo"]); |
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
<!-- Input Form --> | |
<form action="processNumber.cfm" method="post"> | |
Enter the number: <input type="text" name="num"> | |
<input type="submit" value="Submit"> | |
</form> | |
<!-- Processing the Input --> | |
<!--<cfif CGI.REQUEST_METHOD EQ 'POST'></cfif>--> | |
<cfif StructKeyExists(form, "num") AND Len(form.num) GT 0> | |
<cfset num = Val(form.num)> <!-- Convert input to numeric --> |
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> | |
runs = [ | |
{ totalDuration: 10}, | |
{ totalDuration: 20}, | |
{ totalDuration: 30} | |
]; | |
//dump(runs); | |
arraySort( |
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> | |
runs = [ | |
{ totalDuration: 10}, | |
{ totalDuration: 20}, | |
{ totalDuration: 30} | |
]; | |
//dump(runs); | |
arraySort( |
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> | |
runs = [ | |
{ totalDuration: 10}, | |
{ totalDuration: 20}, | |
{ totalDuration: 30} | |
]; | |
dump(runs); | |
arraySort( |
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> | |
private struct function getBlankRateBodyStruct() output = "false" hint = "return default rate body struct" { | |
var jsonString = { | |
"RateRequest": { | |
"Request": { | |
"TransactionReference": { | |
"CustomerContext": "" | |
} |
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> | |
</cfscript> |
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> | |
private struct function getBlankRateBodyStruct() output = "false" hint = "return default rate body struct" { | |
var jsonString = { | |
"RateRequest": { | |
"Request": { | |
"TransactionReference": { | |
"CustomerContext": "CustomerContext" | |
} |
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> | |
local.strText - "<a href="%pageID:12148%/test1">test1</a> | |
<div class="service-card-wrapper"> | |
<div class="_2 service-icon"></div> | |
</div> | |
<div><a href="%pageID:2211%/test2">test2</a></div> | |
"; | |
local.aryLinks = []; | |
local.javaInt1 = javaCast("int", 1); |
NewerOlder