This file contains hidden or 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> | |
/** | |
* @returntype String | |
*/ | |
function foo(){} | |
</cfscript> |
This file contains hidden or 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> | |
/** | |
* @param foo bar | |
* @param foo2 bar2 | |
*/ | |
function foo( foo ) {} | |
writedump( getMetadata( foo ) ) | |
This file contains hidden or 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
<!---<cfoutput> | |
<cfset matrix = ArrayNew(2)> | |
<cfset num = 0> | |
<ul> | |
<cfloop from="1" to="3" index="row"> | |
<li style="font-size:30px;"> | |
<cfloop from="#row#" to="9" step="3" index="step"> | |
<span style="margin-top:5px;font-size:40px;display:inline"> | |
#step# | |
</span> |
This file contains hidden or 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> | |
fruits = ["apple", "banana", "cherry"]; | |
javaArray = javaCast("java.lang.Object[]", listToArray(arrayToList(fruits, ","))); | |
Arrays = createObject("java", "java.util.Arrays"); | |
Stream = Arrays.stream(javaArray); | |
stOutput = Stream.collect(createObject("java", "java.util.stream.Collectors").joining(", ")); | |
writedump(stOutput) | |
</cfscript> |
This file contains hidden or 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> | |
fruits = ["apple", "banana", "cherry"]; | |
javaArray = javaCast("java.lang.Object[]", listToArray(arrayToList(fruits, ","))); | |
Arrays = createObject("java", "java.util.Arrays"); | |
Stream = Arrays.stream(javaArray); | |
stOutput = Stream.collect(createObject("java", "java.util.stream.Collectors").joining(", ")); | |
writedump(stOutput) | |
</cfscript> |
This file contains hidden or 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> | |
hexChar = "A8" | |
binaryValue = BinaryDecode(hexChar, "hex"); | |
dump(binaryValue); | |
dump(binaryValue.toString()); | |
dump(left(binaryValue,1)); | |
dump(Asc(binaryValue)); | |
dump(Asc(left(binaryValue,1))); | |
// |
This file contains hidden or 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> | |
extrasIncudeFilenames = [ | |
"social-media-pack" : { | |
"filename" : "social-media-pack", | |
"recommended" : false | |
}, | |
"shazam" : { | |
"filename" : "shazam", | |
"recommended" : false |
This file contains hidden or 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 variables.calExp = '0/1 * 100'/> | |
<cfset dbz_patterns = ['/0','/ 0','/(0)','/ (0)'] /> | |
<cfset variables.hasDivisionByZero = false /> | |
<cfloop array="#dbz_patterns#" item="dbz_pattern"> | |
<cfset variables.hasDivisionByZero = FindNoCase(dbz_pattern, variables.calExp) gt 0 /> | |
<cfif variables.hasDivisionByZero> | |
<cfbreak /> | |
</cfif> |
This file contains hidden or 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 variables.calExp = '0/1 * 100'/> | |
<cfset dbz_patterns = ['/0','/ 0','/(0)','/ (0)'] /> | |
<cfloop array="#dbz_patterns#" item="dbz_pattern"> | |
<cfset variables.hasDivisionByZero = FindNoCase(dbz_pattern, variables.calExp) gt 0 /> | |
<cfif variables.hasDivisionByZero> | |
<cfbreak /> | |
</cfif> | |
</cfloop> |
This file contains hidden or 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 variables.calExp = '0/1 * 100'/> | |
<cfset dbz_patterns = ['/0','/ 0','/(0)','/ (0)'] /> | |
<cfloop array="#dbz_patterns#" item="dbz_pattern"> | |
<cfset variables.hasDivisionByZero = FindNoCase(dbz_pattern, variables.calExp) gt 0 /> | |
<cfif variables.hasDivisionByZero> | |
<cfbreak /> | |
</cfif> | |
</cfloop> | |
<cfoutput> |