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
component {} |
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> | |
numbers = [511.925,512.925,654.925,655.925] | |
functions = [ | |
"decimalFormat(##x##)", | |
"right(dollarFormat(##x##), -1)", | |
'numberFormat(##x##, "9.00")' | |
] | |
</cfscript> | |
<cfoutput> | |
<table border="1"> |
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
export SCRIPT_NAME="/ping" | |
export SCRIPT_FILENAME="/ping" | |
export REQUEST_METHOD="GET" | |
cgi-fcgi -bind -connect localhost:9000 |
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> | |
data = [ | |
{ org: "A0", path: [0,0,0] }, | |
{ org: "A0->B1", path: [0,1,0] }, | |
{ org: "A0->B1->C1", path: [0,1,1] }, | |
{ org: "A0->B1->C2", path: [0,1,2] }, |
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> | |
query name="getData" { | |
``` | |
<cfsavecontent variable="sql"> | |
SELECT * FROM test WHERE id = | |
</cfsavecontent> | |
``` | |
writeOutput(sql) | |
``` | |
<cfqueryparam cfsqltype="CF_SQL_INTEGER" value="101"> |
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> | |
```<!--- | |
make | |
hyper text | |
transfer | |
protocol | |
request | |
--->``` | |
http |
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 level = 0> | |
<cfscript> | |
level++ | |
``` | |
<cfoutput>Hello from level #level#<br></cfoutput> | |
<cfscript> | |
level++ | |
``` | |
<cfoutput>Hello from level #level#<br></cfoutput> | |
<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> | |
function run() { | |
describe("Comparing behaviour of isObject across CF and Lucee", () => { | |
describe("Tests using isObject", () => { | |
describe("Tests when argument is scoped", () => { | |
var isObjectChecker = (component object) => isObject(arguments.object) | |
it("is a baseline happy path", () => { | |
var o = new Http() | |
expect(isObjectChecker(o)).toBeTrue() |
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
component extends=Controller { | |
function init() { | |
filters("getHeadersForRequest") | |
} | |
function getHeadersForRequest() { | |
variables.headers = getHttpRequestData().headers | |
} |
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
Tags | |
[#arguments.x#] [2] | |
Script | |
[#arguments.x#] [#arguments.x#] |
NewerOlder