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> | |
| strResponseMessage = 'Redemption Limit Met: 3 fpr tpday'; | |
| if(suppress(strResponseMessage)) { | |
| writeOutput('Y'); | |
| } else { | |
| writeOutput('N'); | |
| } | |
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> | |
| executorsClass = CreateObject("java", "java.util.concurrent.Executors"); | |
| SystemClass = createObject( "java", "java.lang.System" ); | |
| obj = executorsClass.newScheduledThreadPool(2) | |
| writedump( SystemClass.identityHashCode( obj ) ) | |
| obj2 = duplicate( obj ) | |
| writedump( SystemClass.identityHashCode( obj2 ) ) |
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> | |
| json = '{ | |
| "name":"CFConfig CLI", | |
| "version":"2.2.0", | |
| "author":"Brad Wood", | |
| "location":"ForgeboxStorage", | |
| "homepage":"https://github.com/Ortus-Solutions/commandbox-cfconfig", | |
| "slug":"commandbox-cfconfig", | |
| "shortDescription":"A CLI library for importing, exporting, transferring, and otherwise managing CF engine configuration.", | |
| "type":"commandbox-modules", |
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 foo = val(3)> | |
| <cfset bar=""> | |
| <cfset quuz=""> | |
| <cfif bar eq "" and quuz neq ""> | |
| <cfset bar = quuz> | |
| <cfelseif bar eq ""> | |
| <cfset bar = 0> | |
| </cfif> | |
| <cfdump label="old" var="#bar#"> |
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> | |
| numbers = [55,5,25,8,15]; | |
| maxNumber = numbers[1]; | |
| writeOutput(maxNumber); | |
| for(i= 2; i <= arrayLen(numbers); i++){ | |
| if(numbers[i] > maxNumber){ | |
| maxNumber= numbers[i] |
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> | |
| fechas = [] | |
| </cfscript> | |
| <cfloop condition="d LTE endDate"> | |
| <cfset arrayAppend(fechas, dateFormat(d, "yyyy-mm-dd"))> | |
| <cfset d = dateAdd("d", 1, d)> | |
| </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
| <cfscript> | |
| writedump( ListQualify("504,micro,reg7a,Disaster","'") ) | |
| </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> | |
| writeDump( | |
| serializeJSON( { "myDate" : now() } ) | |
| ); | |
| </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
| <cfhttp | |
| url="https://search-library.spu.ac.th/api/v1/patrons?cardnumber=41970160" | |
| method="get" | |
| username="napasorn" | |
| password="41970129" | |
| authType="basic" | |
| result="httpResult"> | |
| </cfhttp> |
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> | |
| str = "2.2.2.2 Internal Investment Funds DVP 259 25,90"; | |
| arrstr = listToArray(str, " "); | |
| dump(arrstr); | |
| if(reFindNoCase("^\d.\d",str)){ | |
| revStr = listToArray(reverse(str), " "); | |
| } | |
| result = reFindNoCase("^\d.\d",str,1,true); |
NewerOlder