Skip to content

Instantly share code, notes, and snippets.

@vsmart
vsmart / gist:110bf1d5445e6bf57f0df8474d284aee
Last active December 7, 2016 17:15
Project Group Schedule

Speakers of ClojureBridge 2016

We had a great lineup of speakers at ClojureBridge Berlin. Find a list of them, with twitter handles and slides, below. Wir hatten viele tolle SpeakerInnen bei ClojureBridge Berlin. Hier findest du eine Liste der Namen und gegebenfalls einen Link zu ihrer Präsentation.

Bettina: 10 cool things you can do with Clojure

Jessica: Why I love my detour into Coding

@vsmart
vsmart / gist:d4bae5f8e40ad83cf7a2
Last active August 29, 2015 14:24
Creating a new phoenix application fails on compiling :cowboy dependency.

To fix this, run:

$ rebar get-deps compile 
$ cd ..
$ mix deps.compile ```
@vsmart
vsmart / gist:4e61d17c08626df8d594
Last active August 29, 2015 14:20
How to set up 2FA for Github.
1. Log into your account on github.com
2. Click on your avatar (top right corner) > Settings.
3. In the left sidebar, go to Security. You will see "Two Factor Authentication" on top of the page.
4. You can now choose either using SMS or an Authentication app to do this. I personally have used both SMS and Google Authenticator at points and both work fine. I hear authy also works well.
5. You'll have to enter the code you generated using your chosen method and confirm.
@vsmart
vsmart / gist:8deecda2be8fb3e6afa0
Last active August 29, 2015 14:18
Macro for Clojure debugging
;; This is a useful macro for clojure debugging
(defmacro dbg[x] `(let [x# ~x] (println "dbg:" '~x "=" x#) x#))
;; Use it anywhere in your expression like so:
(defn factorial[n] (if (= n 0) 1 (* n (dbg (factorial (dec n))))))
;; Taken from [stackoverflow](http://stackoverflow.com/a/2352280/789070)