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> | |
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"); | |
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
// 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 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 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 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> | |
myVar = "test"; | |
myStruct = {test:"foo"; test2:"bar"} | |
echo(myStruct[myVar]); //outputs "foo" | |
echo(myStruct["#test2#"]; //outputs "bar" | |
</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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# All Vagrant configuration is done below. The "2" in Vagrant.configure | |
# configures the configuration version (we support older styles for | |
# backwards compatibility). Please don't change it unless you know what | |
# you're doing. | |
Vagrant.configure(2) do |config| | |
# The most common configuration options are documented and commented below. | |
# For a complete reference, please see the online documentation at |
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
interface { | |
public function myFunc(required string myString){ | |
} | |
public function myOtherFunc(required array myArray){ | |
} |
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> | |
echo(expandPath('{lucee-web}') & "<br />"); //C:\Users\Rory\.CommandBox\server\A9F9212AEA00D070AA3482E81E747F69-luceebook | |
echo(expandPath('{lucee-server}') & "<br />"); //C:\Users\Rory\.CommandBox\engine\cfml\server\lucee-server\context | |
echo(expandPath('{lucee-config}') & "<br />"); //C:\Users\Rory\.CommandBox\server\A9F9212AEA00D070AA3482E81E747F69-luceebook | |
echo(expandPath('{temp-directory}') & "<br />"); //C:\Users\Rory\.CommandBox\server\A9F9212AEA00D070AA3482E81E747F69-luceebook\temp | |
echo(expandPath('{home-directory}') & "<br />"); //C:\Users\Rory | |
echo(expandPath('{system-directory}') & "<br />"); //C:\Windows\System32 | |
echo(expandPath('{web-root-directory}') & "<br />"); //C:\websites\luceebook | |
echo(expandPath('{web-context-hash}') & "<br />"); //C:\websites\luceebook\examples\system_placeholders\a9f9212aea00d070aa3482e81e747f69 | |
echo(expandPath('{web-context-label}') & "<br />"); //C:\websites\luceebook\examples\system_placeholders\a9f9212aea00d070aa3482e81e747f69 |
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
/** | |
* My xUnit Test | |
*/ | |
component extends="testbox.system.BaseSpec"{ | |
/*********************************** LIFE CYCLE Methods ***********************************/ | |
// executes before all test cases | |
function beforeTests(){ | |
} |
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
component { | |
} |
OlderNewer