Skip to content

Instantly share code, notes, and snippets.

@zilti
zilti / core.clj
Created April 13, 2014 10:23
No method in multimethod 'check' for dispatch value: :reify
(ns core-typed-bug.core
(:require [clojure.core.typed :refer :all]))
(ann-protocol ITypedTest
get-data [ITypedTest -> Any])
(defprotocol> ITypedTest
(get-data [this]))
(ann typed-test [String -> ITypedTest])
(defn typed-test [input]
@zilti
zilti / core.clj
Created April 12, 2014 23:33
core.typed fails as soon as protocols are around, no matter if typed or not.
(ns core-typed-bug.core
(:require [clojure.core.typed :refer :all]))
(defprotocol> ITypedTest
(get-data [this]))
(defn> testfn :- Any
[asdf :- Keyword, in :- ITypedTest]
(.get-data in))
Sample project for the "Getting started with JavaFX in Clojure" ( https://coderwall.com/p/4yjy1a ) ProTip.
Files for the https://coderwall.com/p/-sawaa protip.
@zilti
zilti / base-stuff.el
Created July 25, 2013 19:54
Configuration for Emacs with Clojure; See [the full article](https://coderwall.com/p/53bfpg) on coderwall.
;; Highlights line you're currently on
(global-hl-line-mode t)
;; Shows in modeline where in the file you are
(sml-modeline-mode)
;; Pretty symbols
(require 'pretty-mode-plus)
(global-pretty-mode 1)
;; Autocomplete
(require 'auto-complete)
;; Disable annoying bell sound