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 ="unit" output="no"> | |
<!--- ************************************************************************************ ---> | |
<!--- Get local.tracking ---> | |
<!--- ************************************************************************************ ---> | |
<cffunction name="tracking" access="remote" returntype="any" output="no"> | |
<cfargument name="trackingID" required="yes" type="string"> | |
<cfargument name="UserID" default=""> | |
<cfargument name="Password" default=""> | |
<cfargument name="ShowDetail" default="Yes"> |
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
<!--- ********************************************************* ---> | |
<!--- Saman W Jayasekara : sam@cflove.org (Oct 07 2011) ---> | |
<!--- ********************************************************* ---> | |
<cfparam name="request.autosuggest" default="0"> | |
<cfparam name="request.url" default=""> | |
<cfparam name="attributes.delimiter" default="|"> | |
<cfparam name="attributes.wait" default="0"> | |
<cfparam name="attributes.url" default="#request.url#"> | |
<cfset request.url = attributes.url> |
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
<cffunction name="httpget" access="private" returnType="any" output="No"> | |
<cfargument name ="source" type="string" required="true"/> | |
<cfargument name ="destination" type="string" required="true"/> | |
<cfargument name ="ConnectTimeout" type="numeric" required="false" default="10" hint="Time Out in Seconds"/> | |
<cfargument name ="ReadTimeout" type="numeric" required="false" default="60" hint="Time Out in Seconds" /> | |
<cfargument name ="dimensions" type="numeric" required="false" default="255"/> | |
<cfset local.urlconnection = createObject("java", "java.net.URL").init(arguments.source)> | |
<cfset local.connection = local.urlconnection.openConnection() /> | |
<cfset local.connection.setConnectTimeout(javaCast("int",arguments.ConnectTimeout*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
<cffunction name="httppage" access="public" returnType="any" output="no"> | |
<cfargument name ="source" type="any" required="true"/> | |
<cfset local.urlconnection = createObject("java", "java.net.URL").init(javaCast('string',arguments.source))> | |
<cfset local.Connection = local.urlconnection..openConnection() /> | |
<cfset local.Connection.connect() /> | |
<cfset local.InputStreamReader = createObject("java", "java.io.InputStreamReader").init(local.Connection.getInputStream()) /> | |
<cfset local.BufferedReader = createObject("java", "java.io.BufferedReader").init(local.InputStreamReader) > | |
<cfset local.Page = arrayNew(1) /> | |
<cfloop condition="#yesNoFormat(local.BufferedReader.ready())#"> |
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
******************************************************************* | |
-- INLINE CALCULATIONS | |
SELECT VacationHours + SickLeaveHours as daysOff, JobTitle,VacationHours, SickLeaveHours | |
FROM [AdventureWorks2012].[HumanResources].[Employee] | |
SELECT [CommissionPct] ,[SalesYTD], ([SalesYTD]/100)*[CommissionPct] as commission | |
FROM [AdventureWorks2012].[Sales].[SalesPerson] | |
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
<div style="color:##38121E">Hello Wold</div> | |
<div style="color:##38121E; font-size:20px">Hello Wold</div> | |
<div style="color:##38121E; font-size:20px; font-wight:Bold">Hello Wold</div> | |
<div style="border-width: 1px; border-style: dotted; border-color: black">Hello Wold</div> | |
<div style="border: 1px dotted black">Hello Wold</div> | |
1. -------------------------------------------------------- | |
<style type="text/css"> | |
div {font-size: 20px} | |
#red {color: #450515} |
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></title> | |
<link rel="stylesheet" type="text/css" href="http://maxcdn.bootstrapcdn.com/bootstrap/2.3.2/css/bootstrap.min.css"> | |
<script type="text/javascript" src="http://maxcdn.bootstrapcdn.com/bootstrap/2.3.2/js/bootstrap.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
<script type="text/javascript"> | |
alert('hello world') | |
</script> | |
<script type="text/javascript"> | |
a = "hello World" | |
alert(a) | |
</script> | |
<script type="text/javascript"> |
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
<style> | |
ul { | |
padding: 0px; | |
} | |
li:first-child { | |
border-left: 1px solid red; | |
} | |
li { | |
list-style: none; |
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>Document</title> | |
<script src="http://code.jquery.com/jquery-1.10.2.min.js" type="text/javascript"></script> | |
<style type="text/css" media="screen"> | |
.box {background-color: red; width: 80px; height: 80px; display: inline-block;} | |
</style> | |
</head> |