Skip to content

Instantly share code, notes, and snippets.

View pmcelhaney's full-sized avatar

Patrick McElhaney pmcelhaney

View GitHub Profile
(function (Hope, _, empire) {
var $ = new Hope();
_(empire.replace(/\b[a-z]{4} /, ""));
return $;
}(
function () { this.prototype = Array; this[0] = "Luke"; this[1] = "Leia"; },
function (x) { console.log(x); },
"Quit fooling around and get back to work."
));
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Tab Test</title>
<meta name="author" content="Patrick McElhaney">
</head>
<body>
@pmcelhaney
pmcelhaney / ensureFTPDirectoryExists.cfm
Created August 9, 2010 17:42
Creates a directory on an FTP server if it doesn't already exist. If necessary, creates intermediate directories as well.
<!---
Creates a directory on an FTP server if it doesn't already exist. If necessary,
creates intermediate directories as well.
Usage:
<cfftp action="open" connection="conn" ... />
<cfset ensureFTPDirectoryExists("/path/to/a/dir", conn)>
--->
<cffunction name="ensureFTPDirectoryExists">