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> | |
users = [ | |
{ firstName: "Anna", lastName: "Banana" }, | |
{ firstName: "Blakely", lastName: "Smith" }, | |
{ firstName: "", lastName: "" }, | |
{ firstName: "Donkers", lastName: "Vaughn" } | |
]; | |
namedUsers = users |
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> | |
var today = DateFormat(now()); | |
var today_11D = DateAdd("d", 11, now()); | |
var today_6M = DateAdd("m", -6, today_11D); | |
if ( today_6M < today_11D ){ | |
today = "#today_6M#/" | |
} |
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> | |
var = DateFormat(now()); | |
var date = DateFormat(DateAdd("d", 11, now()), 'mm/dd/yyy' ); | |
var month = Month(date); | |
var year = Year(date); | |
var day = Day(date); | |
var daysInMonth = DaysInMonth(date); |
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> | |
_server = 'www.test.com'; | |
writeoutput("#!listFirst(cgi.SERVER_NAME,'.') == 'www'#") | |
</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
<cfdump var="#Encrypt('mail.server-attendingweb-vps.vps.ezhostingserver.com','M3N4O5P6Q7R8S9T1U2V','CFMX_COMPAT','hex')#"> | |
<cfdump var="#Encrypt('Flipper5!Pizza!','M3N4O5P6Q7R8S9T1U2V','CFMX_COMPAT','hex')#"> | |
<cfdump var="#Encrypt('[email protected]','M3N4O5P6Q7R8S9T1U2V','CFMX_COMPAT','hex')#"> |
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> | |
dump( server.lucee.version ) | |
cfdirectory( action="list" directory="#ExpandPath('./')#" recurse="true" name="fileList" sort="name desc"); | |
</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> | |
dump(LuceeVersionsDetail("7.0.0.340-SNAPSHOT")); | |
</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> | |
dump(LuceeVersionsList()); | |
</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> | |
aNumbers = [5,8,7,3,9,12,47,95]; | |
// arrayAvg() => Calculates the average of the values in an array | |
result = aNumbers.avg(); | |
// arraySum() => Calculates the sum of all the elements in an array. | |
// result = ArraySum(aNumbers); |
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> | |
collectionObj = StructNew("ordered"); | |
collectionObj["organizationId"] = "eb900cb2-b595-4c44-bc80-b1b2010ed2ea"; | |
collectionObj["name"] = "arggg"; | |
collectionObj["externalid"] = "" | |
writedump( | |
</cfscript> |
NewerOlder