Skip to content

Instantly share code, notes, and snippets.

@Zoramite
Zoramite / sortableCopy.css
Created January 4, 2011 17:58
Testing the ability to ctrl + drag to copy a sortable element
* {
margin: 0;
padding: 0;
}
ul,
ol {
list-style: none;
}
@Zoramite
Zoramite / fileDownload.cfm
Created December 16, 2010 05:12
Test downloading a file using http
<cfset source = 'https://github.com/seancorfield/fw1/tarball/v1.2' />
<cfset downloadPath = './' />
<cfset downloadFile = 'test.tar.gz' />
<cfhttp url="#source#" method="get" file="#downloadFile#" path="#downloadPath#" getAsBinary="true" />
@Zoramite
Zoramite / dynamicCalls.cfc
Created December 15, 2010 18:41
Calling a function on a component dynamically.
<cfcomponent output="false">
<cffunction name="testing" access="public" returntype="string" output="false">
<cfargument name="value" type="string" required="true" />
<cfreturn '<strong>' & arguments.value & '</strong>' />
</cffunction>
</cfcomponent>
@Zoramite
Zoramite / RailoByteSize.cfm
Created October 22, 2010 04:42
Testing the calculation of the byte size of a string in Railo.
<cfoutput>
<cfset temp = createUUID() />
<div>
UUID: #temp#
</div>
<div>
Size of UUID: #sizeOf(temp)#
</div>
<!-- Grab Google CDN's jQuery. fall back to local if necessary -->
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script>!window.jQuery && document.write('<script src="js/jquery-1.4.2.min.js"><\/script>')</script>