I changed
from
RT.load("unity.repl");
to
| (ns hard.input | |
| (:import | |
| [UnityEngine Input KeyCode Camera Physics])) | |
| (declare mouse?) | |
| (defn get-keycode [s] | |
| (try (or (eval (symbol (str "KeyCode/" s))) false) (catch Exception e nil))) | |
| (defn ^:private kcode* [k] |
| (ns hard.core | |
| (:import | |
| [UnityEngine Physics Debug Resources PrimitiveType Application Color Input])) | |
| (defn log [x] | |
| (UnityEngine.Debug/Log x)) | |
| (defn resource [s] (UnityEngine.Resources/Load s)) | |
| ;is a no arg qmark fn bad style? |
| (ns ships.core | |
| (:use [unity.core]) | |
| (:import | |
| [UnityEngine Debug Resources PrimitiveType Application])) | |
| (defprotocol IAwake | |
| (Awake [this])) | |
| (defprotocol IStart | |
| (Start [this])) |
| (ns hard.core | |
| (:import | |
| [UnityEngine Debug Resources PrimitiveType Application])) | |
| (defn log [x] | |
| (UnityEngine.Debug/Log x)) | |
| ;(defn math [f & more] | |
| ; (. UnityEngine.Mathf (f more))) |
I changed
from
RT.load("unity.repl");
to
| ;saved documents have data for :filesystem, :filepath, :unsaved-changes, :file-uid | |
| (defn get-iframe [data] | |
| "Returns the iframe element for the given | |
| Workspace cursor" | |
| (let [id (:iframe-id data)] | |
| (.getElementById js/document id))) | |
| (defn to-html [element] | |
| "Returns the HTML string of the element and it's contents, when given an iframe returns only content HTML.") |
| (def app-state (atom {:vect | |
| [{:uid 0 :i 0} | |
| {:uid 1 :i 0} | |
| {:uid 2 :i 0} | |
| {:uid 3 :i 0} | |
| {:uid 4 :i 0} | |
| {:uid 5 :i 0} | |
| {:uid 3 :i 0}]})) | |
| (plomb/defcomp item [data owner] |
| (sug/defcomp t-c-2 | |
| [data owner opts] | |
| {:render-state | |
| (fn [_ state] | |
| (let [] | |
| (.log js/console (.-_rootNodeID owner)) | |
| (dom/div nil | |
| (dom/p nil (prn-str (.-__om_cursor (.-props owner)))) | |
| (dom/button #js {:onClick #(sug/up! :c owner {:thing true})} "eventer") | |
| )))}) |
| "The space captain" by Joseph Parker | |
| Chapter 1 - Declarations | |
| A zone is a kind of container. Zones are usually enterable. Zones are usually transparent. | |
| A galaxy is a kind of room. | |
| A cluster is a kind of zone. | |
| A system is a kind of zone. |
| <?php | |
| $con = new Connection(); | |
| $res = $con->query('SELECT word, hash FROM `keywords` LIMIT 0, 30 '); | |
| $rows = array(); | |
| while($r = $res->fetch_assoc()) { | |
| echo $r["word"]." ".$r["hash"]."<br>"; | |
| } |