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
<cfdump var="#isDate('12345-0001')#" label="Is Date? 12345-0001" /> | |
<cfdump var="#isDate('12345-0010')#" label="Is Date? 12345-0010" /> | |
<cfdump var="#isDate('12345-0100')#" label="Is Date? 12345-0100" /> | |
<cfdump var="#isDate('12345-1000')#" label="Is Date? 12345-1000" /> |
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> | |
local.query = new Query(datasource = 'testDatasource'); | |
local.query.setSql(' | |
INSERT INTO testTable | |
( | |
type, | |
message | |
) VALUES ( | |
:type, |
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> | |
paths = []; | |
paths[1] = expandPath("./tagsoup-1.2.jar"); | |
loader = createObject("component", "javaloader/JavaLoader").init(paths); | |
</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
<cfset tests = [ | |
xmlParse('<?xml version="1.0"?> <html><body><ul><li>foo</li><li>bar</li></ul></body></html>'), | |
xmlParse('<?xml version="1.0"?> <html xmlns="http://www.w3.org/1999/xhtml"><body><ul><li>foo</li><li>bar</li></ul></body></html>') | |
] /> | |
<cfloop array="#tests#" index="i"> | |
<cfset results = xmlSearch(i, '/html/body/ul/li') /> | |
<cfdump var="#results#" /> | |
</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
.example1 { | |
background-color: #efefef; | |
background-image: | |
-webkit-linear-gradient(0, rgba(222,213,108,.07) 50%, transparent 50%), | |
-webkit-linear-gradient(0, rgba(201,184,88,.13) 50%, transparent 50%), | |
-webkit-linear-gradient(0, transparent 50%, rgba(168,137,73,.17) 50%), | |
-webkit-linear-gradient(0, transparent 50%, rgba(99,78,60,.19) 50%); | |
background-image: | |
-moz-linear-gradient(0, rgba(222,213,108,.07) 50%, transparent 50%), | |
-moz-linear-gradient(0, transparent 50%, rgba(201,184,88,.13) 50%), |
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
<cfif not structKeyExists(application, 'openIDConsumer') or structKeyExists(url, 'reinit')> | |
<cfset application.openIDConsumer = createObject('java', 'org.openid4java.consumer.ConsumerManager', expandPath('./openid4java.jar')).init() /> | |
</cfif> | |
<cfset openIDConsumer = application.openIDConsumer /> | |
<cfset discoveries = openIDConsumer.discover('https://www.google.com/accounts/o8/id') /> | |
<cfset discovered = openIDConsumer.associate(discoveries) /> |
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> | |
template = { | |
test: 'true' | |
}; | |
include template="test.cfm"; | |
writeDump(template); // Outputs: test.cfm | |
</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
<cfset test = createObject('component', 'test') /> | |
<cfoutput>#test.test()#</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
Homemade Bubbles: | |
1 1/2 quarts of water | |
1/2 cup light corn syrup | |
1 cup liquid dish soap | |
Add water and corn syrup and stir until completely mixed. Slowly stir in dish soap. Store in an airtight container. |
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
JAVA_OPTS="$JAVA_OPTS -Xms512m -Xmx1424m -XX:MaxPermSize=512m -XX:NewSize=64m -XX:MaxNewSize=64m -XX:+UseParNewGC -XX:+UseConcMarkSweepGC"; export JAVA_OPTS; |