This file contains hidden or 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 parse-form [down-tok?, up-tok?, [tok & toks]] | |
| (loop [frm [tok], toks toks] | |
| (if-let [[tok2 & toks2] (seq toks)] | |
| (cond | |
| (down-tok? tok2) (let [[res toks3] (parse-form down-tok?, up-tok?, toks)] | |
| (recur (conj frm res) toks3)) | |
| (up-tok? tok2) [(conj frm tok2) toks2] | |
| :else (recur (conj frm tok2) toks2)) | |
| [frm nil]))) |
This file contains hidden or 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
| Shader "geronimo" { | |
| Properties { | |
| wobble ("wobble", Vector) = (0, 0, 0, 0) | |
| } | |
| SubShader { | |
| Pass { | |
| GLSLPROGRAM | |
| #ifdef VERTEX | |
This file contains hidden or 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
| (let [ns | |
| ;;'gamma.api | |
| ;;'arcadia.config | |
| ;;'gamma.compiler.core | |
| 'gamma-tools.core | |
| ] | |
| (require ns) | |
| (in-ns ns) | |
| (use | |
| 'clojure.pprint |
This file contains hidden or 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
| Shader "geronimo" { | |
| Properties { | |
| wobble ("wobble", Vector) = (0, 0, 0, 0) | |
| } | |
| SubShader { | |
| Pass { | |
| GLSLPROGRAM | |
| #ifdef VERTEX | |
This file contains hidden or 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
| (dotimes [_ 10] | |
| (time | |
| (dotimes [_ 1e4] | |
| {:this 0 | |
| :is 1 | |
| :a 2 | |
| :small 3 | |
| :map 4}))) |
This file contains hidden or 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
| (dotimes [_ 10] | |
| (time | |
| (dotimes [_ 1e4] | |
| {:this 0 | |
| :is 1 | |
| :a 2 | |
| :small 3 | |
| :map 4}))) |
This file contains hidden or 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
| (dotimes [_ 10] | |
| (time | |
| (dotimes [_ 1e4] | |
| {:this 0 | |
| :is 1 | |
| :a 2 | |
| :small 3 | |
| :map 4}))) |
This file contains hidden or 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
| (dotimes [_ 10] | |
| (time | |
| (dotimes [_ 1e4] | |
| {:this 0 | |
| :is 1 | |
| :a 2 | |
| :small 3 | |
| :map 4}))) |
This file contains hidden or 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
| // from "Seascape" by Alexander Alekseev aka TDM - 2014 | |
| // License Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License. | |
| float heightMapTracing(vec3 ori, vec3 dir, out vec3 p) { ``` | |
| float tm = 0.0; | |
| float tx = 1000.0; | |
| float hx = map(ori + dir * tx); | |
| if(hx > 0.0) return tx; | |
| float hm = map(ori + dir * tm); |
This file contains hidden or 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
| (defprotocol ISack | |
| (whats-in-me [this])) | |
| (defn potato-sack [the-potatos] | |
| (reify ISack | |
| (whats-in-me [_] the-potatos))) |