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
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title></title> | |
<script src="js/jquery-1.11.2.min.js"></script> | |
</head> | |
<body> |
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
<!--- 1 ************************************************************************ ---> | |
<cfset DateToday = now() /> | |
<cfdump var = "#DateToday#" /> | |
<script type="text/javascript"> | |
var d = new Date(); | |
console.log( d ) | |
</script> | |
<!--- 2 ************************************************************************ ---> |
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
<cfsavecontent variable= "x"> | |
<?xml version="1.0"?> | |
<AccessRequest xml:lang='en-US'> | |
<AccessLicenseNumber></AccessLicenseNumber> | |
<UserId></UserId> | |
<Password></Password> | |
</AccessRequest> | |
<?xml version="1.0"?> | |
<TrackRequest> | |
<TrackingNumber>1ZA478X20198248503</TrackingNumber> |
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
<!doctype html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Untitled Document</title> | |
<style type="text/css"> | |
.result {font-family:Verdana; border-radius:10px; color:white; padding:10px} | |
.looser {background-color:black;} | |
.winner {background-color:red;} | |
</style> |
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
<cfheader name="content-disposition" value="attachment; filename=test.txt"/> | |
<cfheader name="X-Sendfile" value="D:\iis\hello.txt"/> | |
<cfcontent type="text/plain"> |
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
select EmailAddress from [Person].[EmailAddress] | |
where [BusinessEntityID] = | |
( | |
SELECT [BusinessEntityID] | |
FROM [Person].[Person] | |
where FirstName = 'Ken' | |
and LastName = 'Kwok' | |
) | |
---------------------------------------- | |
select EmailAddress from [Person].[EmailAddress] |
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
<cfcomponent displayname = "PDFTools" output= "Yes" accessors="true" > | |
<cfproperty name="file"> | |
<cfproperty name="map"> | |
<cffunction name = "init" access = "Public" output = "No" returntype = "Any"> | |
<cfargument name = "filePath" required= "Yes" type = "String" default = "" /> | |
<cfset local.p = createObject("java",'org.apache.pdfbox.pdmodel.PDDocument') /> | |
<cfset COSName = createObject("java",'org.apache.pdfbox.cos.COSName') /> | |
<cfset setFile( local.p.load( arguments.filePath ) )/> |
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(cookie,'Bingo')> | |
<cfcookie secure="false" httpOnly="true" name="Bingo" value="" /> | |
Cookie Created with an empty value. Refresh the Browser to confirm. | |
<cfelse> | |
Cookie Exists. All good. | |
</cfif> |
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
openssl pkcs12 -export -out domain.name.pfx -inkey domain.name.key -in domain.name.crt | |
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
create table #DailyIncome(VendorId nvarchar(10), IncomeDay nvarchar(10), IncomeAmount int) | |
insert into #DailyIncome values ('SPIKE', 'FRI', 100) | |
insert into #DailyIncome values ('SPIKE', 'MON', 300) | |
insert into #DailyIncome values ('FREDS', 'SUN', 400) | |
insert into #DailyIncome values ('SPIKE', 'WED', 500) | |
insert into #DailyIncome values ('SPIKE', 'TUE', 200) | |
insert into #DailyIncome values ('JOHNS', 'WED', 900) | |
insert into #DailyIncome values ('SPIKE', 'FRI', 100) | |
insert into #DailyIncome values ('JOHNS', 'MON', 300) | |
insert into #DailyIncome values ('SPIKE', 'SUN', 400) |