Skip to content

Instantly share code, notes, and snippets.

@hiredman
Created December 2, 2022 21:17
Show Gist options
  • Save hiredman/cd1b57894a19dda3a205ca129626a672 to your computer and use it in GitHub Desktop.
Save hiredman/cd1b57894a19dda3a205ca129626a672 to your computer and use it in GitHub Desktop.
#!/bin/sh
#_(
true; exec clj -J-Xmx256M -J-XX:-OmitStackTraceInFastThrow -Sdeps "`sed -n -e '/;;(DEPS$/,/;;DEPS)$/p' $0`" -M -i $0 -e '(user/main)'
)
(ns user
#?(:cljs (:require-macros [user :as m]))
(:require
#?@(:clj ([cljs.build.api :as cljs]
[clojure.java.io :as io]
[clojure.repl :refer :all]
[clojure.data :refer [diff]]
[clojure.string :as str]
[hiccup.core :refer [html]])
:cljs ([reagent.core :as r]
[reagent.dom :as rdom]
[clojure.string :as str]))
[cognitect.transit :as transit]
[com.stuartsierra.component :as component])
#?(:clj (:import (io.undertow.util Headers)
(io.undertow.websockets.core AbstractReceiveListener
WebSockets
WebSocketChannel
BufferedTextMessage)
(io.undertow.websockets WebSocketProtocolHandshakeHandler
WebSocketConnectionCallback)
(io.undertow Undertow
Handlers)
(io.undertow.server HttpHandler
HttpServerExchange)
(java.io File)
(java.nio ByteBuffer)
(java.time Instant)
(java.time.format DateTimeFormatter)
(java.util.concurrent CompletableFuture))))
(comment
;;(DEPS
{:deps {org.clojure/clojurescript {:mvn/version "1.10.879"}
io.undertow/undertow-core {:mvn/version "2.2.12.Final"}
reagent/reagent {:mvn/version "1.1.0"}
cljsjs/react {:mvn/version "17.0.2-0"}
cljsjs/react-dom {:mvn/version "17.0.2-0"}
com.stuartsierra/component {:mvn/version "1.1.0"}
com.cognitect/transit-clj {:mvn/version "1.0.324"}
com.cognitect/transit-cljs {:mvn/version "0.8.269"}
hiccup/hiccup {:mvn/version "1.0.5"}}}
;;DEPS)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment