Skip to content

Instantly share code, notes, and snippets.

Avatar

Bryan Maass escherize

View GitHub Profile
@mmzsource
mmzsource / cljs-quil-emacs-figwheel-setup.md
Last active Sep 13, 2020
Setup dynamic Clojurescript and Quil environment with emacs and figwheel
View cljs-quil-emacs-figwheel-setup.md

My environment

  • emacs 26.3
  • cider 0.25.0
  • leiningen 2.9.4 on Java 11.0.2
  • ~/.lein/profiles.clj : {:user {:plugins []}}

Project setup

In a terminal, run these commands:

@taylorwood
taylorwood / instaparse.clj
Created May 14, 2018
Clojure Instaparse examples
View instaparse.clj
;; "human" date/time format parsing
(def human-time-parser
(insta/parser
"S = H (':' M)? ' '? P? (' ' Z)?
H = #'[1-9]' | #'1[0-2]'
M = #'0[0-9]' | #'[1-5][0-9]'
P = AM | PM
AM = 'A' 'M'?
PM = 'P' 'M'?
@athos
athos / deps.edn
Last active May 9, 2020
Try `clojure -Sdeps '{:deps {hello-clojure {:git/url "https://gist.github.com/athos/b68b15b08efedffaf14d8c020b125202" :sha "1c9a05106171f97f9b8e8ac8f58c7bd8dbe021f9"}}}' -m hello-clojure` on your terminal
View deps.edn
{:paths ["."]
:deps {clansi {:mvn/version "1.0.0"}}}
@bomberstudios
bomberstudios / sketch-diff-in-git.md
Last active Nov 8, 2019
How to diff your .sketch files in Git
View sketch-diff-in-git.md

Using sketchtool to diff your .sketch files using text

Requirements

You need to have SketchTool installed somewhere in your path.

Setup

Add this in your ~/.gitconfig file (for some reason, it won't work in a local .gitconfig file):

@bhb
bhb / dbg.clj
Created Mar 26, 2015
Debug macro for Clojure (dbg)
View dbg.clj
(defmacro dbg [body]
`(let [x# ~body]
(println "dbg:" '~body "=" x#)
x#))
You can’t perform that action at this time.