Skip to content

Instantly share code, notes, and snippets.

View ypsilon-takai's full-sized avatar
😊
taking care of things around myself

Ypsilon.takai ypsilon-takai

😊
taking care of things around myself
View GitHub Profile
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Clojure, Paredit and nRepl
;;
;; Sets up nrepl/clojure/paredit with the following features:
;;
;; - enable Paredit mode for clojure files
;;
;; - when there's an nrepl connection, compile and load clojure files
;; automatically after saving
;;
@nikolaplejic
nikolaplejic / core.clj
Created September 2, 2010 17:54
File upload example in Compojure
(ns fileupload.core
(:use [net.cgrand.enlive-html
:only [deftemplate defsnippet content clone-for
nth-of-type first-child do-> set-attr sniptest at emit*]]
[compojure.core]
[ring.adapter.jetty])
(:require (compojure [route :as route])
(ring.util [response :as response])
(ring.middleware [multipart-params :as mp])
(clojure.contrib [duck-streams :as ds]))