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> | |
index action="purge" collection="test"; | |
testQuery = queryNew('key,body,title,something'); | |
for(i = 1; i < 15; i++) { | |
queryAddRow(testQuery); | |
querySetCell(testQuery, 'key', i); | |
querySetCell(testQuery, 'body', 'Testing: ' & i); |
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
<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 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 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 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 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 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 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 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. |