Skip to content

Instantly share code, notes, and snippets.

Martin Klepsch martinklepsch

Block or report user

Report or block martinklepsch

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
@martinklepsch
martinklepsch / cljs-js-analysis-cache-usage.md
Last active Aug 29, 2015 — forked from mhuebert/cljs-js-analysis-cache-usage.md
Using existing namespaces from cljs.js
View cljs-js-analysis-cache-usage.md

Let's say you want to use the new cljs.js bootstrapped compiler to eval code in your project. Using cljs.js/eval looks like this:

(ns foo.try-eval
  (:require [cljs.js :as cljs]))

(let [c-state (cljs/empty-state)]
  (cljs/eval c-state                       ;compiler state
             `(+ 1 1)`                     ;form to eval
             {:eval cljs/js-eval           ;options
View deterpolate.clj
(defn deterpolate [s]
(loop [tokens (interpolate s)
out-str (StringBuffer.)
out-args []]
(if (seq tokens)
(let [token (first tokens)]
(cond (string? token)
(recur (rest tokens)
(doto out-str (.append token))
out-args)
View 10-ways-to-improve-github-issues.md

10 Ways to improve Github Issues

I love the new GitHub issues, here are some ideas to make it perfect, ordered by priority:

1. I should be able to pick the assignee and milestone via keyboard when creating a new ticket

2. Keyboard shortcuts should work everywhere. For example when viewing an existing issue, 'c' will not create a new one.

3. After creating an issue, the assigned user / milestone should be pre-filled when creating the next issue.

4. When commenting, I should also be able to assign a different user. Right now this deletes my half-typed comment.

5. When typing the @ symbol to mention somebody, it should auto-complete the name.

6. This might just be me, but things feel a little sluggish right now, any improvements would be very welcome.

You can’t perform that action at this time.