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
<h1>About Us</h1> | |
<cfinclude template="navigation.cfm" /> | |
<p> | |
Page content about us | |
</p> |
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://www.howsmyssl.com/" /> | |
<cfdump var=#rematch('Your client is using[^<]+',cfhttp.FileContent)# /> | |
<cfdump var=#Server.Lucee.Version# /> | |
<cfdump var=#Server.Java.Version# /> | |
<cfoutput>#cfhttp.filecontent#</cfoutput> |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
component { | |
// The application name. If you do not set this variable, or set it to the empty string, your CFC applies to the unnamed application scope, which is the Lucee J2EE servlet context. THIS.name = "foo"; | |
this.name = "foo"; | |
/* | |
this.applicationTimeout = createTimeSpan(0, 1, 0, 0); // Life span, as a real number of days, of the application, including all Application scope variables. | |
this.clientManagement = false; // Whether the application supports Client scope variables. | |
this.clientStorage = "registry"; //cookie||registry||datasource // Where Client variables are stored; can be cookie, registry, or the name of a data source. this.customTagPaths = ""; // Contains Lucee custom tag paths. this.datasource = ""; // Name of the data source from which the query retrieves data. |
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> | |
myUrl = "https://news.google.com/news?gl=us&hl=en&as_epq=chinese+medicine&as_occt=title&as_qdr=a&authuser=0&q=allintitle:++%22chinese+medicine%22&um=1&output=rss"; // web service url | |
objUrl = createobject("java","java.net.URL").init(myUrl); | |
conn = objUrl.openConnection(); | |
//configure the request | |
conn.setDoOutput(true); | |
conn.setUseCaches(false); | |
conn.setRequestMethod("GET"); | |
NewerOlder