Skip to content

Instantly share code, notes, and snippets.

<cfset q = QueryNew("acct_id,asset_id,auction_id", "integer,integer,integer")>
<cfset rrAuction = { acct_id = 1, asset_id = 322, auction_id = 1 }>
<cfset q.addRow(rrAuction)>
<cfset rrAuction = { acct_id = 3414, asset_id = 52, auction_id = 2 }>
<cfset q.addRow(rrAuction)>
<cfdump var="#q#">
<cfscript>
x = [4,5,6];
for ( var y in x ) {
writeOutput( y );
}
</cfscript>
<cfscript>
x = [4,5,6];
for ( var y in x ) {
writeOutput( y );
}
</cfscript>
<cfscript>
myData = "This is my data!!!";
secretKeyCFMXCompat = "mysecretkey";
encryptedData = encrypt(myData,secretKeyCFMXCompat);
writeDump({
"encrypted" = encryptedData,
"decrypted" = decrypt(encryptedData, secretKeyCFMXCompat )
});
<cfset string = "1997-07-16T19:20:30+01:00">
<cfset date = parseDateTime(string, "yyyy-MM-dd'T'HH:mm:ssX")>
<cfoutput>#date.ts#</cfoutput>
<cfscript>
test = {
"licenseNumber": "",
"licenseState": "",
"companyName": "",
"companyAddress": "",
"companyCity": "",
"companyState": "",
"companyZip": "",
"companyType": "",
<cfsavecontent variable="xmlResult">
<ArrayOfezCertApplication xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/i2i.ezcertapi.Models">
<ezCertApplication>
<AccountRef>sus33855</AccountRef>
<AppID>4534619</AppID>
<ApplicationRef>SUS0033855/004444146/E</ApplicationRef>
<CountryCode>qa</CountryCode>
<CurrencyCode>GBP</CurrencyCode>
<CustomerRef>170723</CustomerRef>
<DateOfApplication>2023-07-19T09:57:00</DateOfApplication>
<cfsavecontent variable="xmlResult">
<ArrayOfezCertApplication xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/i2i.ezcertapi.Models">
<ezCertApplication>
<AccountRef>sus33855</AccountRef>
<AppID>4534619</AppID>
<ApplicationRef>SUS0033855/004444146/E</ApplicationRef>
<CountryCode>qa</CountryCode>
<CurrencyCode>GBP</CurrencyCode>
<CustomerRef>170723</CustomerRef>
<DateOfApplication>2023-07-19T09:57:00</DateOfApplication>
<cfsavecontent variable="xmlResult">
<ArrayOfezCertApplication xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/i2i.ezcertapi.Models">
<ezCertApplication>
<AccountRef>sus33855</AccountRef>
<AppID>4534619</AppID>
<ApplicationRef>SUS0033855/004444146/E</ApplicationRef>
<CountryCode>qa</CountryCode>
<CurrencyCode>GBP</CurrencyCode>
<CustomerRef>170723</CustomerRef>
<DateOfApplication>2023-07-19T09:57:00</DateOfApplication>
<cfset string = "1997-07-16T19:20:30+01:00">
<cfset string2="2021-09-16T22:02:21Z">
<cfset date = parseDateTime(string, "yyyy-MM-dd'T'HH:mm:ss'Z")>
<cfoutput>#date#</cfoutput>