916-462-2011 [email protected] 502 Cobble Creek Circle, Rocklin CA
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
(load "./field.scm") | |
(use srfi-27) | |
(random-source-randomize! default-random-source) | |
(define c 10) | |
(define-class <arduino> (<thing>) | |
((sensors :init-keyword :sensors | |
:init-value '() ;;[field-name] |
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
(load "./2-voc-w-field.scm") | |
(define-class <cat> (<thing>) | |
((body-temperature :init-keyword :body-temperature | |
:accessor body-temperature))) | |
(define-class <sun> (<thing>) | |
((temperature :init-keyword :temperature | |
:accessor temperature))) |
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
{ | |
"app_id": "Bird.sample.fruits_machine", | |
"models": { | |
"fruits": [ | |
"grape", | |
"orange", | |
"strawberry", | |
"orange", | |
"strawberry", | |
"strawberry", |
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
/* | |
* Author: 2015 Minori Yamashita [email protected] | |
*/ | |
var origin = {x: 160, y:340}; | |
var canvas = document.getElementById("space"); | |
//http://stackoverflow.com/questions/9960908/permutations-in-javascript | |
function permutate (arr) { | |
return arr.reduce(function permute(res, item, key, arr) { | |
return res.concat(arr.length > 1 |
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
window.Ekolu = (function () { | |
var ekolu = {}; | |
ekolu.xyz = function (x, y, z) { | |
return {x: x, y: y, z: z}; | |
}; | |
ekolu._Thread = function (coordinates_system, pos_rot, ai, vision, visual) { | |
this.coordinates_system = coordinates_system || _.identity; | |
this.pos_rot = pos_rot || function (t) { return ekolu.xyz(0,0,0); }; | |
this.ai = ai || []; |
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
(function (K) { | |
K.util = {}; | |
K.util.dom = {}; | |
//[a] * [a] * (a->HTMLElement) * HTMLElement * $ -> () | |
//collとold_collの差分を計算してelに反映させる | |
K.util.dom.render_collection_change = function (coll, old_coll, f, el, $) { | |
var $el = $(el); | |
var $children = $(el).children(); | |
var children = $children.get(); |
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
(= (some a (Option a)) x x) | |
(= (some? (Option a) Bool) x (not (none? x))) | |
(= (none (Option a)) nil) | |
(= (none? (Option a) Bool) x (nil? x)) | |
(= (get (Option a) a) x x) | |
(= (get-or-else (Option a) a a) | |
opt default | |
(some? opt (get opt) default)) |
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
//1 dimentional, constant speed car | |
//private | |
function _Car (vision, address, speed, id) { | |
this.visual = {id: id, brake_light: false, address: address, _speed: speed + "mph", _car: this}; | |
this._vision = vision; | |
this._speed = speed; | |
this._brake = function () { | |
this.visual.brake_light = true; |