Skip to content

Instantly share code, notes, and snippets.

TjG tjg

Block or report user

Report or block tjg

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
tjg / excel-templates-tables.clj
Created Mar 15, 2017
Little hack I use to extend Excel tables to the end of the data when using the excellent tomfaulhaber/excel-templates
View excel-templates-tables.clj
(defn extend-table-to-end! [table worksheet]
(let [start (.getStartCellReference table)
end (.getEndCellReference table)
last-row-num (.getPhysicalNumberOfRows worksheet)
;; Excel doesn't like zero-sized tables.
last-row-num (if (= last-row-num (.getRow start))
(inc last-row-num)
new-range (-> (CellRangeAddress. (.getRow start) last-row-num
tjg / helm-clojure-headlines.el
Last active Dec 1, 2015 — forked from juxtin/helm-clojure-headlines.el
View helm-clojure-headlines.el
;; Might want to customize helm-candidate-number-limit, because by
;; default it shows 100 matches maximum.
;; FIXME: collect line count, and display if it's past helm-candidate-number-limit.
(defun helm-headlines (headline buffer-name good-regex exception-regex)
"Display headlines for the current file.
Displays lines where good-regex matches, except for those
which also match exception-regex."
View gist:11292251 Could not locate clojure/tools/analyzer__init.class or clojure/tools/analyzer.clj on classpath:
at clojure.lang.RT.load (
clojure.lang.RT.load (
clojure.core$load$fn__5018.invoke (core.clj:5530)
clojure.core$load.doInvoke (core.clj:5529)
clojure.lang.RestFn.invoke (
clojure.core$load_one.invoke (core.clj:5336)
clojure.core$load_lib$fn__4967.invoke (core.clj:5375)
clojure.core$load_lib.doInvoke (core.clj:5374)
clojure.lang.RestFn.applyTo (
You can’t perform that action at this time.