(defn -main [& _] (future (p/local-proxy-server 7000 “https://test.gomio.com” {:insecure? true})) (Thread/sleep 5000) (let [port (Integer/parseInt (or (System/getenv “PORT”) “3000”))] (-> (castra ‘hostelrocket.rpc) (wrap-session {:store (cookie-store {:key “a 16-byte secret”})}) (wrap-file “resources/public”) (wrap-file-info) (run-jetty {:port port}))))
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(cell= (when (and fit-pins (seq pins)) | |
(let [bounds (LatLngBounds.)] | |
(doseq [{:keys [lat lon]} pins] | |
(when (and lat lon) | |
(do | |
(print (str "lat:" lat " lon:" lon)) | |
(.extend bounds (LatLng. lat lon))))) | |
(print (str "Bounds: " (js->clj (.toString bounds)))) | |
(.setCenter map (.getCenter bounds)) | |
#_(.fitBounds map bounds) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Compiling Hoplon dependencies... | |
java.io.FileNotFoundException: Could not locate tailrecursion/boot/classlojure/core__init.class or tailrecursion/boot/classlojure/core.clj on classpath: | |
at clojure.lang.RT.load (RT.java:443) | |
clojure.lang.RT.load (RT.java:411) | |
clojure.core$load$fn__5018.invoke (core.clj:5530) | |
clojure.core$load.doInvoke (core.clj:5529) | |
clojure.lang.RestFn.invoke (RestFn.java:408) | |
clojure.core$load_one.invoke (core.clj:5336) | |
clojure.core$load_lib$fn__4967.invoke (core.clj:5375) | |
clojure.core$load_lib.doInvoke (core.clj:5374) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env boot | |
#tailrecursion.boot.core/version "2.4.0" | |
(set-env! | |
:project 'asdf | |
:version "0.1.0-SNAPSHOT" | |
:dependencies '[[tailrecursion/boot.task "2.2.1"] | |
[tailrecursion/boot.ring "0.1.0"] | |
[tailrecursion/boot.notify "2.0.2"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Error: Could not find artifact tailrecursion:boot.core:jar:2.3.1 in http://repo1.maven.org/maven2/ (http://repo1.maven.org/maven2/) | |
Error: Could not find artifact tailrecursion:jquery.daterangepicker:jar:0.1.1 in http://repo1.maven.org/maven2/ (http://repo1.maven.org/maven2/) | |
Error: Could not find artifact tailrecursion:momentjs-2.6.0:jar:0.1.0 in http://repo1.maven.org/maven2/ (http://repo1.maven.org/maven2/) | |
Error: Could not find artifact tailrecursion:jquery.daterangepicker-0.0.5:jar:0.1.0 in http://repo1.maven.org/maven2/ (http://repo1.maven.org/maven2/) | |
Error: Could not find artifact tailrecursion:twitter.bootstrap:jar:0.1.1 in http://repo1.maven.org/maven2/ (http://repo1.maven.org/maven2/) | |
Retrieving tailrecursion/boot.core/2.3.1/boot.core-2.3.1.jar from http://clojars.org/repo/ | |
Retrieving tailrecursion/jquery.daterangepicker-0.0.5/0.1.0/jquery.daterangepicker-0.0.5-0.1.0.jar from http://clojars.org/repo/ | |
Retrieving tailrecursion/momentjs-2.6.0/0.1.0/momentjs-2.6.0-0.1.0.jar from http://clojars.org/repo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DCM-MacBook-Air-2:hostelrocket.ext[deps-updates*]$ lein trampoline run -m hostelrocket.ext | |
Exception in thread "main" org.apache.axis2.AxisFault: Connection refused, compiling:(gomio.clj:19:13) | |
at clojure.lang.Compiler$InvokeExpr.eval(Compiler.java:3463) | |
at clojure.lang.Compiler$DefExpr.eval(Compiler.java:408) | |
at clojure.lang.Compiler.eval(Compiler.java:6624) | |
at clojure.lang.Compiler.load(Compiler.java:7064) | |
at clojure.lang.RT.loadResourceScript(RT.java:370) | |
at clojure.lang.RT.loadResourceScript(RT.java:361) | |
at clojure.lang.RT.load(RT.java:440) | |
at clojure.lang.RT.load(RT.java:411) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def test_function | |
return if false | |
if "test string" =~ /test/ | |
puts "something #{another_function}" | |
end | |
end |
I hereby claim:
- I am donmullen on github.
- I am donmullen (https://keybase.io/donmullen) on keybase.
- I have a public key whose fingerprint is 18DC 03B9 2565 FC7C AEAB 5CE1 12DF 0A80 570D 746F
To claim this, I am signing this object: