Skip to content

Instantly share code, notes, and snippets.

View nikvdp's full-sized avatar

Nik nikvdp

View GitHub Profile
#!/usr/bin/env lein exec
;; formats Clojure code from stdin, and prints formatted code to stdout
(require 'leiningen.exec)
;; Add a dependency to the classpath on the fly
(leiningen.exec/deps '[[cljfmt "0.1.7"]])
(require '[cljfmt.core :as cljfmt])
@willurd
willurd / web-servers.md
Last active July 5, 2024 18:32
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000