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> |
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 ) { | |
if ( compare( expected, actual ) == 0 ) { | |
writeOutput( "✔" ) | |
} else { | |
writeOutput( "✗" ) | |
} | |
writeOutput( " expected `#expected#`, got `#actual#`<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
<cfscript> | |
function assert( actual, expected ) { | |
if ( compare( expected, actual ) == 0 ) { | |
writeOutput( "✔" ) | |
} else { | |
writeOutput( "✗" ) | |
} | |
writeOutput( " expected `#expected#`, got `#actual#`<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
<cfscript> | |
function assert( actual, expected ) { | |
if ( expected == actual ) { | |
writeOutput( "✔" ) | |
} else { | |
writeOutput( "✗" ) | |
} | |
writeOutput( " expected `#expected#`, got `#actual#`<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
<cfscript> | |
function assert( actual, expected ) { | |
if ( expected == actual ) { | |
writeOutput( "✔" ) | |
} else { | |
writeOutput( "✗" ) | |
} | |
writeOutput( " expected `#expected#`, got `#actual#`<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
<cfscript> | |
function assert( actual, expected ) { | |
if ( expected == actual ) { | |
writeOutput( "✔" ) | |
} else { | |
writeOutput( "✗" ) | |
} | |
writeOutput( " expected `#expected#`, got `#actual#`<br>" ); | |
} |
NewerOlder