Skip to content

Instantly share code, notes, and snippets.

@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
Files for the https://coderwall.com/p/-sawaa protip.
Sample project for the "Getting started with JavaFX in Clojure" ( https://coderwall.com/p/4yjy1a ) ProTip.
@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))
@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 / Stacktrace
Last active August 29, 2015 14:02
core.typed fails to properly load protocols
Initializing core.typed ...
Building core.typed base environments ...
Finished building base environments
"Elapsed time: 4453.814043 msecs"
core.typed initialized.
Start collecting broken-protocol.core
Start collecting broken-protocol.other
Finished collecting broken-protocol.other
Finished collecting broken-protocol.core
Collected 2 namespaces in 4806.79317 msecs
@zilti
zilti / build.boot
Created January 8, 2015 00:10
Failed type check
;-*- mode: Clojure;-*-
(set-env!
;;:source-paths #{"src"}
:repositories {"clojars.org" "https://clojars.org/repo/"
"central" "http://repo1.maven.org/maven2/"
"sonatype-oss-public" "https://oss.sonatype.org/content/groups/public/"}
:dependencies '[[org.clojure/clojure "1.7.0-alpha4"]
[sonian/carica "1.1.0" :exclusions [cheshire]]
[environ "1.0.0"]
[clj-time "0.9.0"]
@zilti
zilti / sawinlist.el
Created October 24, 2016 15:22
Emacs script to interact with the Sawfish window manager. See http://sawfish.wikia.com/wiki/Sawinlist for more infos.
;;; sawinlist.el --- functions for listing and manipulating x-windows managed by sawfish
;; Copyright (C) 2011 , 2012 by the author: John Lumby johnlumby@hotmail.com
;; This file may be used in conjunction with GNU Emacs.
;; Both this file and GNU Emacs are free software; you may redistribute them and/or modify
;; them under the terms of the GNU General Public License as published by
;; the Free Software Foundation; either version 2, or (at your option)
;; any later version.
@zilti
zilti / dump.zip.base64
Created November 23, 2016 05:23
MoarVM compilation core dump
UEsDBBQAAAAIAMAwd0kBj4fdnPUHAKCINgAJABwAbW9hci5jb3JlVVQJAAO4IzVYI8QzWHV4
CwABBOgDAAAEZAAAAOyde3RTVb7HT/oMLZSACIWKHLDMFJyWdEQoL01LK+nYQldbnDoKJG1D
E8nLJC3F0TFDwSkWJDPOvdalg/Hde0e98aJOx2cQlLp0xqCjU3WNE2f5CHPViYNCHYHcfc75
7WTv3X0anT/mruvKb5G1z97n+/nt336dfZJ1TrmxruGyLI1GwJYjXCKkcoJgEMabQagS9sOx
pM1Fn0DtRAQyEVJdissjOZ2JkhuLaD3LjTZjZXDalb4UN5bARxouF2nGrbub4ooXQ3mIz8Wu
z4Lz91CcG8ep0r62AeAiNCfOh4M4n+t9CLjwvRQXWwDxGfhxml7NBuX9FBc+Fw70/PrED4DT
38/UBwcGPqfV5igFbpoL5eCG8rnhySAI0JzBDwfuAi43thc7DlHc6M/xkcq4n58L5x+luKSp
zLMkp6O5OHbn53PhUhAEaK7seXyUxeViH2LuIM3lwYGJX5/uE+DiNBfA011lngU/BS76GMVp
MSfy+3Pob7gDnqC4KsyF+PVFcceFaK4JukOI8Dn9CeD8v6HXXykc+FXaNwt33DDFjeD6mvic
dQ5wTTSnvxYOVPplcAA492/p+vD1w53N5UzaSUpB9Gn6uqSdOM5eHXD6Z+j+nKKZMM6RubC+
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'org.javafxports:jfxmobile-plugin:1.3.15'
}
}