Skip to content

Instantly share code, notes, and snippets.

@bittersweetryan
Created October 4, 2012 18:38
Show Gist options
  • Save bittersweetryan/3835530 to your computer and use it in GitHub Desktop.
Save bittersweetryan/3835530 to your computer and use it in GitHub Desktop.
partial aplication
<cfscript>
var getFilings = makeFilingGetter(filing,
password,
username,
filingEndpoint,
attachmentEndpoint);
var results = getFilings("COMPANY",
filter,
variables.serffFields);
var attachments = getFilings("SUPPORTDOCS",
filter,
variables.attachmentFields);
var rateAttachments = getFilings("RATESCHEDULE",
filter,
variables.rateAttachmentFields);
</cfscript>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment