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
Steps for Actiontext demo | |
------------------------- | |
gem install rails -v 7.0.1 | |
rails new actiontext_demo -v 7.0.1 | |
cd actiontext_demo | |
bundle |
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
callback=function(z) { console.log("hi",z);} | |
new goog.net.NetworkTester(callback).start() | |
// Prints: hi false to the javascript console |
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
(defn wrap-dir-index [handler] | |
(fn [req] | |
(handler | |
(update-in req [:uri] | |
#(if (= "/" %) "/index.html" %)))) |
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
(ns doremi_script_clojure.core | |
[doremi_script_clojure.to_lilypond :refer [to-lilypond]] | |
[clojure.java.io :refer [input-stream resource]] | |
[clojure.data.json :as json] | |
[clojure.pprint :refer [pprint]] | |
)) | |
(defn -json_text_to_lilypond[txt] | |
"Takes parsed doremi-script json data as text" |