Skip to content

Instantly share code, notes, and snippets.

@hiredman
Created March 18, 2010 23:31
Show Gist options
  • Save hiredman/337053 to your computer and use it in GitHub Desktop.
Save hiredman/337053 to your computer and use it in GitHub Desktop.
(defn process-args [m]
(mapcat (fn [[flag value]] [(format "--%s" (name flag)) value]) m))
(defn growl [m]
(-> (Runtime/getRuntime)
(.exec
(into-array
String
(cons "/usr/local/bin/growlnotify" (process-args m))))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment