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 s = "62397EAD17D5BEFBD0C93C8A"> |
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> | |
| function greet(name) { | |
| return "hello, " & name & "!"; | |
| } | |
| result = greet("Alice"); | |
| writeOutput(result); | |
| </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
| <cfset pw =""> | |
| <cfset Acode = decrypt(pw, 'MiCamino44', "CFMX_COMPAT", "hex")> | |
| <cfdump var ="#acode#"> |
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 animal = createobject("component", "Animal")> | |
| <cfsavecontent variable="jsonstr">{"animal":{"id":1,"name":"chicken","eats":"chicken food","says":"cluck cluck"}}</cfsavecontent> | |
| <cfset decoded = deserializejson(jsonstr).animal> | |
| <cfset animal.setId(decoded.id).setName(decoded.name).setEats(decoded.eats).setSays(decoded.says)> | |
| <cfscript> | |
| // Lucee | |
| typedArray = arrayNew(dimension: 1, synchronized : true, type:"Animal"); | |
| //ACF v1 - syntax listed would throw error in Lucee, but creates an array type Animals | |
| //typedArray = arrayNew(dimension: 1, issynchronized : true, typename:"Animal"); | |
| //ACF v2 - this is the alleged way, but it does not create an array type Animals |
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> | |
| miArray = ArrayNew(1, "numeric"); | |
| ArrayAppend(miArray, "Hola"); | |
| </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> | |
| </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
| <cfsetting requestTimeout="10"> | |
| <cfscript> | |
| try { | |
| result = countOccurences("hello", ""); | |
| writedump(result); | |
| } catch(e) { | |
| writedump(e); | |
| } | |
| </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> | |
| arr = [1,2,3]; | |
| val = arr.pop(); | |
| writedump({ | |
| "arr" : arr, | |
| "val" : val | |
| }); |
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> | |
| middlewareFunction = "func ( a, b )"; | |
| functionName = trim(listFirst(middlewareFunction, "(")); | |
| argumentsList = listRest(middlewareFunction, "("); | |
| argumentsArray = listToArray(argumentsList, ",()"); | |
| writeDump({ | |
| "middlewareFunction" : middlewareFunction, |
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> | |
| </cfscript> |
NewerOlder