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 arguments.IsSold = 1> | |
<cfquery name="local.qryTraditional" datasource="cfartgallery"> | |
SELECT | |
a1.ArtistID | |
, a1.FirstName | |
, a1.LastName | |
, ( | |
SELECT TOP 1 LargeImage | |
FROM Art | |
WHERE IsSold = <cfqueryparam cfsqltype="cf_sql_bit" value="#arguments.IsSold#"> |
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
<cfcomponent displayname="Twitter" output="false" hint="I provide functions for interacting with the Twitter API."> | |
<cfscript> | |
this.name = "Twitter"; | |
variables.baseURI = "https://api.twitter.com/"; | |
variables.charset = "UTF-8"; | |
variables.version = "1.1"; | |
</cfscript> | |
<cffunction name="init" access="public" output="false" returntype="any" hint="I initialize the component"> | |
<cfargument name="apiKey" required="false" type="string" default="" hint="I am the API key to the Twitter API that was provided to us by Twitter."> |
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> | |
// inside Application.cfc is service constructor | |
application.EnterpriseService = new path.to.EnterpriseService(); | |
// inside site code somewhere | |
application.EnterpriseService.call(api_id=#, custom_args={}); | |
// EnterpriseService.cfc | |
init() { | |
// some shared constants set here |
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> | |
// testxy gives expected results | |
testxy.actual_dimensions = "144xy210"; | |
testxy.actual_dimension_width = listFirst(testxy.actual_dimensions, "x", true); | |
testxy.actual_dimension_height = listLast(testxy.actual_dimensions, "x", true); | |
writedump(testxy); | |
// testxx does not give expected results | |
// expected testxx.actual_dimension_height to be x210 | |
testxx.actual_dimensions = "144xx210"; |
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> | |
arr1 = [1]; | |
arr2 = [2,3]; | |
arr1.append(arr2); | |
writedump(arr1); | |
arr3 = [1]; | |
arr4 = [2,3]; | |
arr3.addAll(arr4); | |
writedump(arr3); |
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> | |
REReplaceNoCase("{{cms:winter_wonderland}}", "{{cms:(\w+)}}", "#getThemeData(theme='\1')#", "all"); | |
function getThemeData(required string theme) { | |
writedump(arguments); | |
} | |
</cfscript> |
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
java.lang.ClassNotFoundException: org.elasticsearch.common.settings.ImmutableSettings at java.net.URLClassLoader$1.run(URLClassLoader.java:366) at java.net.URLClassLoader$1.run(URLClassLoader.java:355) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:354) at java.lang.ClassLoader.loadClass(ClassLoader.java:425) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) at java.lang.ClassLoader.loadClass(ClassLoader.java:358) at java.lang.ClassLoader.findSystemClass(ClassLoader.java:1059) at com.compoundtheory.classloader.NetworkClassLoader.loadClass(NetworkClassLoader.java:488) at java.lang.ClassLoader.loadClass(ClassLoader.java:358) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at coldfusion.runtime |
OlderNewer