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
foo.cfc | |
----------- | |
component accessors = true { | |
// accessors = true // syntax error here (it should be above,as per now) | |
property string username setter = true required=true; | |
property string password setter = true required=true; | |
property string WSURL setter=true required=true; | |
} | |
test.cfm |
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
<cfoutput> | |
#LSIsNumeric("-1,0","nl_NL")#<br> | |
#LSNumberFormat("-1,0",".00","nl_NL")#<br> | |
</cfoutput> |
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> | |
for (iLanguage = 1; iLanguage LTE arrayLen(variables.languageData); iLanguage++) { | |
thisLanguageData = { | |
strPageURL = variables.languageData[iLanguage].baseURL | |
& variables.languageData[iLanguage].resourceBundle.getResource('terms_url') | |
& "/", | |
strNativeLangName = variables.languageData[iLanguage].nativeName | |
}; | |
arrayAppend(languageLinks,thisLanguageData); | |
} |
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> | |
param name="URL.sourceFile"; | |
param name="URL.destinationFile"; | |
if (!fileExists(URL.sourceFile)){ | |
throw(type="FileNotFoundException", message="Source file not found", detail="The source file - #URL.sourceFile# - was not found"); | |
} | |
httpResponse = new Http( | |
URL = "http://javascript-minifier.com/raw", | |
method = "POST", |
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
//Copyright 2013 Adobe Systems Incorporated. All Rights Reserved. | |
function arrayAppend(arrayObj, value, merge) | |
{ | |
_validateParameters(arrayAppend.arguments.length, 2, "arrayAppend"); | |
if("undefined" == typeof merge) | |
var merge = false; | |
if(value instanceof Array && merge) |
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
import java.lang.reflect.InvocationTargetException; | |
import java.lang.reflect.Method; | |
public class TestReflectionPerformance { | |
public static void main(String[] args) | |
throws IllegalArgumentException, IllegalAccessException, InvocationTargetException, NoSuchMethodException | |
{ | |
String toSearch = args[0]; |
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
<!doctype html> | |
<html lang="en"> | |
<head> | |
<!-- top of head --> | |
<meta charset="utf-8"> | |
<title></title> | |
<!-- bottom of head --> | |
</head> | |
<body> | |
Stuff in body |
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
C:\Windows\system32>cd C:\apps\railo-express | |
C:\apps\railo-express>java -Djetty.port=8888 -DSTOP.PORT=8887 -DSTOP.KEY=railo - | |
Xms256M -Xmx1024M -javaagent:lib/ext/railo-inst.jar -jar start.jar | |
railo-server-root:C:\apps\railo-express\lib\ext\railo-server | |
=================================================================== | |
SERVER CONTEXT | |
------------------------------------------------------------------- | |
- config:C:\apps\railo-express\lib\ext\railo-server\context | |
- loader-version:4.3 |
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
<cfset original = "test string with a trailing ##"> | |
<cfset encoded = urlEncodedFormat(original)> | |
<cfset decoded = urlDecode(encoded)> | |
<cfdump var="#[original,encoded,decoded]#"> | |
<!--- | |
outputs: | |
array | |
1 test string with a trailing # |
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> | |
cfflush(interval=16); | |
base = {}; | |
iteration = 0; | |
while (true){ | |
id = createUuid(); | |
base[id] = repeatString(chr(randRange(97,122)), 1024*1024); | |
writeOutput("#++iteration# #id# added <br>"); | |
} | |
</cfscript> |