Instantly share code, notes, and snippets.

View utils.clj
;; FIXME: This is missing from the stdlib.
(defn split-extension [filename]
(let [index (.lastIndexOf filename ".")]
(list (.substring filename 0 index) (.substring filename index))))
(defn get-basename [filename]
(let [index (.lastIndexOf filename ".")]
(.substring filename 0 index)))
(defn get-extension [filename]
View gist.el
(when (not token)
(setq token (read-string "GitHub API token: "))
(github-set-config "token" token))