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 date=createODBCdate(createDatetime(2000,1,2,3,4,5,6,"UTC"))> | |
<cfoutput> | |
raw output: #date#<br> | |
toString() method: #date.toString()#<br> | |
<cfdump var="#date#" label="Dump"> | |
Force to string: #date & ""#<br> | |
Railo version: #server.railo.version# | |
</cfoutput> |
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
<cfchart name="chart" format="png"> | |
<cfchartseries type="Bar"> | |
<cfchartdata item="one" value="1"> | |
<cfchartdata item="two" value="2"> | |
<cfchartdata item="three" value="3"> | |
<cfchartdata item="four" value="4"> | |
</cfchartseries> | |
</cfchart> | |
<cfset pdfFile = expandPath("./test.pdf")> |
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
// Struct.cfc | |
component { | |
pageEncoding "utf-8"; // there's a ß, further down | |
function run(){ | |
describe("append() tests", function(){ | |
it("appends two empty structs", function(){ | |
var initialStruct = {}; | |
initialStruct.append({}); |
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
<cfdump var="x" label="'"> |
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
<!--- Application.cfc ---> | |
<cfcomponent></cfcomponent> |
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
// TestExecutionSequence.cfc | |
component extends="testbox.system.testing.BaseSpec" { | |
function beforeAll(){ | |
writeOutput("top of beforeAll()<br>"); | |
writeOutput("bottom of beforeAll()<br>"); | |
} | |
function run(){ | |
writeOutput("top of run()<br>"); |
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
numbers = queryNew("id,en,mi", "int,varchar,varchar",[ | |
[1,"one","tahi"], | |
[2,"two","rua"], | |
[3,"three","toru"], | |
[4,"four","wha"] | |
]) | |
for(number in numbers){ | |
number.en = number.en.toUpperCase() | |
} |
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 = [1,2,3,4] | |
iterations = 0 | |
numbers.each(function(v,i){ | |
iterations++ //unscoped | |
echo("#iterations#<br>") | |
}); | |
echo("<hr>") | |
iterations = 0 |
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> | |
foo,bar= "moo"; | |
writedump(variables); | |
<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> | |
URL.test=1; | |
test++; | |
writeDump({url=url.test,variables=variables.test}); | |
</cfscript> |
OlderNewer