Skip to content

Instantly share code, notes, and snippets.

@cers
Created October 21, 2009 16:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cers/215217 to your computer and use it in GitHub Desktop.
Save cers/215217 to your computer and use it in GitHub Desktop.
CmdUtils.makeSearchCommand({
name: "Julian day calc",
url: "http://aa.usno.navy.mil/cgi-bin/aa_jdconv.pl",
postData: "FFX=2&ID=AA&jd={QUERY}&ZZZ=END",
preview: function(pblock, args) {
$.post(this.url,
this.postData.replace("{QUERY}",args.object.text),
function(d) { $(pblock).html(d); });
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment