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
(use 'unity.hydrate) | |
;; create a new game object named New Object | |
(hydrate {:name "New Object"}) | |
;; create a new game object named New Object, with a transform with local position 40 20 10 | |
(hydrate {:name "New Object" :transform [{:local-position [40 20 10]}]}) | |
;; create a new game object named New Object, with a transform with local position 40 20 10 and a box collider with center 1 1 2 | |
(hydrate {:name "New Object" :transform [{:local-position [40 20 10]}] |
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
unity.core=> (pprint (dehydrate (object-named "Main Camera"))) | |
{:children [], | |
:transform | |
[{:has-changed true, | |
:rotation (0.0, 0.0, 0.0, 1.0), | |
:local-position (0.0, 1.0, -10.0), | |
:parent nil, | |
:euler-angles (0.0, 0.0, 0.0), | |
:local-euler-angles (0.0, 0.0, 0.0), | |
:name "Main Camera", |
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
/* | |
* Text-to-speech example to speak the first n digits of pi. | |
* The number is stored in flash, each digit is spoken one at a time. | |
*/ | |
#include <WaveHC.h> | |
#include <WaveUtil.h> | |
SdReader card; // This object holds the information for the card | |
FatVolume vol; // This holds the information for the partition on the card | |
FatReader root; // This holds the information for the volumes root directory |
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
<meta charset="utf-8"> | |
<script src="js/jquery.js"></script> | |
<script src="js/jqconsole.js"></script> | |
<script src="js/sugar.js"></script> | |
<script src="js/peg.js"></script> | |
<script src="js/plt.js"></script> | |
<script type="text/javascript"> | |
// uncomment next line to enable refresh |
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
<meta charset="utf-8"> | |
<script src="js/jquery.js"></script> | |
<script src="js/jqconsole.js"></script> | |
<script src="js/sugar.js"></script> | |
<script src="js/peg.js"></script> | |
<script src="js/plt.js"></script> | |
<script type="text/javascript"> | |
// uncomment next line to enable refresh |
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 hooks | |
(:use arcadia.core)) | |
(defmacro invoke-if-bound [sym] | |
`(if-let [~sym ((ns-map '~'user) '~sym)] | |
(~sym))) | |
; via jplur_ ;) | |
(defcomponent Hooks [] | |
(Start [this] |
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
(.GetMethods UnityEngine.Vector3) | |
(.GetMethods UnityEngine.Vector3 (enum-or BindingFlags/Static BindingFlags/Public)) | |
(.GetMethod UnityEngine.Vector3 "Lerp") | |
(.GetMethod UnityEngine.Vector3 "op_Addition") |
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
from http://www.mobileread.com/forums/showthread.php?t=195702&page=2 | |
[General] | |
unpack=true | |
debootstrap=Grip | |
aptsources=Debian | |
[Grip] | |
packages=ntpdate udev lrzsz netcat telnetd | |
source=http://www.emdebian.org/grip |
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 user | |
(:use arcadia.core) | |
(:import [UnityEngine | |
Vector3 | |
Time | |
Gizmos | |
Color | |
Debug | |
Plane | |
Mathf])) |
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
(let [m (.mesh (get-component (object-named "mesh") UnityEngine.MeshFilter))] | |
(set! | |
(.vertices m) | |
(into-array [(v 0 0 0) | |
(v 0 0 1) | |
(v 0 1 1) | |
(v 0 1 0) | |
(v 2 0.5 0.5) | |
])) | |
(set! |