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 assert( actual, expected ) { | |
var wanted = serializeJSON( expected ); | |
var got = serializeJSON( actual ); | |
if ( wanted == got ) { | |
writeOutput( "✔" ) | |
} else { | |
writeOutput( "✗" ) | |
} |
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 assert( actual, expected ) { | |
var wanted = serializeJSON( expected ); | |
var got = serializeJSON( actual ); | |
if ( wanted == got ) { | |
writeOutput( "✔" ) | |
} else { | |
writeOutput( "✗" ) | |
} |
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 assert( actual, expected ) { | |
var wanted = expected; | |
var got = actual; | |
if ( !isSimpleValue( actual ) ) { | |
wanted = serializeJSON( expected ); | |
got = serializeJSON( actual ); | |
} | |
if ( wanted == got ) { |
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
<style> | |
table.cfdump_wddx, | |
table.cfdump_xml, | |
table.cfdump_struct, | |
table.cfdump_varundefined, | |
table.cfdump_array, | |
table.cfdump_query, | |
table.cfdump_cfc, |
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> | |
var type1 | |
var type2 | |
var type3 | |
var val = 1; | |
try {} | |
throw(type="ErrorUnauthorized"); |
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> | |
myList = createObject('java', 'java.util.ArrayList').init(); | |
myList.add("foo"); | |
myList.add("bar"); | |
myList.add("baz"); | |
i = 0; | |
i = i+1 | |
writedump(i.getClass().getName() ) | |
writedump( myList.get( i )); |
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> | |
myList = createObject('java', 'java.util.ArrayList').init(); | |
myList.add("foo"); | |
myList.add("bar"); | |
myList.add("baz"); | |
i = 0; | |
writedump( myList.get( i+1 )); | |
(i+1).getClass().getNamer() | |
</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> | |
valy = 365; | |
writeOutput("sign_#valy#_#encrypt(string="user#valy#", key="semSignaturea", encoding="hex" )#.png"); | |
writeOutput(decrypt(string="4A4450ABFA0A8E",key="semSignature", encoding="hex")); | |
</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 testMyFnc() { | |
return "this is my function:#GetFunctionCalledName()#"; | |
} | |
writeDump(Var=testMyFnc()); | |
</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> | |
test = "Non specificato – Non specificato"; | |
test = CharsetDecode(my_string, "ASCII"); | |
test = CharsetDecode(test, "windows-1252"); | |
writeOutput(test); | |
</cfscript> |
NewerOlder