Skip to content

Instantly share code, notes, and snippets.

@keisisqrl
Last active January 9, 2016 17:33
Show Gist options
  • Save keisisqrl/86a091e33b0c1bac9c89 to your computer and use it in GitHub Desktop.
Save keisisqrl/86a091e33b0c1bac9c89 to your computer and use it in GitHub Desktop.
yoprs
// compiled from Hot Cocoa Lisp
// (set module.exports
// ;begin code
// (# (hook)
// (def login-line (get hook.env (+ 'APRS_' hook.params.username)))
// (def callsign (cadr (login-line.split ' ')))
// (def ax25 (+ callsign '>APRS,TCPIP*:>This is a test'))
// (hook.res.end (+ login-line '\r\n' ax25))
// )
// ;end code
// )
(module["exports"] = (function (hook) {var login_hyphen_line, callsign, ax25; login_hyphen_line = hook["env"][('APRS_' + hook["params"]["username"])]; callsign = login_hyphen_line["split"](' ')[1]; ax25 = (callsign + '>APRS,TCPIP*:>This is a test'); return hook["res"]["end"]((login_hyphen_line + '\r\n' + ax25)); }));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment