Skip to content

Instantly share code, notes, and snippets.

@davejlong
davejlong / cfscp.cfc
Created May 18, 2011 13:46
SCP Functionality within ColdFusion using the SFTP
<cfcomponent displayname="CF SCP" hint="Handles SCP style functionality within ColdFusion" output="false">
<cfproperty name="scpserver" hint="Remote server to send files to" type="string" />
<cfproperty name="username" hint="Username for access to the remote server" type="struct" />
<cfproperty name="password" hint="Password of the remote server (required if not using private key authentication)" type="string" />
<cfproperty name="key" hint="Path to private key for private key authentication" type="string" />
<cfproperty name="connection" type="any" />
<!--- #### Object Constructor #### --->
<cffunction name="init" hint="Object constructor" access="public" output="false" returntype="any">
<cfargument name="server" type="string" required="false" default="" />
@jasonseminara
jasonseminara / bst.coffee
Last active August 29, 2015 14:01
first coffeescript
bst=(r)->
_root = r
compare=(a,b)->
return switch
when a is b then 0
when a < b then -1
when a > b then 1
root:()->_root