@NeillBlomkamp: I should check that out- what I am attempting to do is communicate/ interact with and make films for the audience with no middle man #
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
const dom = ({tag='div', attributes={}, styles={}, classes=[], text=null, children=null}) => { | |
const el = document.createElement(tag) | |
el.className = classes.join(' ') | |
for (let [key, value] of Object.entries(attributes)) { | |
if (value) { | |
el.setAttribute(key, value) | |
} | |
} |
How to get WebVR working with your brand-new Daydream View & Pixel.
- Update Daydream app to latest (Play Store)
- Update Chrome app to latest (Play Store)
- Tip: if you're feeling brave, download Chrome Canary instead. Better perf and new features.
- Update Google VR Services (Play Store)
- Open chrome://flags/#enable-webvr
- Click "Enable"
- Open chrome://flags/#enable-vr-shell
- Set dropdown to "Enabled"
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
""" | |
This script fetches the latest master of all of the openag firmware repositories, then removes the `.git`, etc. | |
""" | |
import subprocess | |
import argparse | |
from os import path | |
LIBS = set(( | |
"https://github.com/OpenAgInitiative/openag_firmware_module.git", | |
"https://github.com/OpenAgInitiative/rosserial_arduino_libs.git", |
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
{ | |
"_id": "general_greens", | |
"recipe_format": "phased", | |
"version": "1.0", | |
"optimization": [ | |
"general purpose" | |
], | |
"date_created": "2017-02-08", | |
"author": "openag", | |
"stages": [ |
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
class Memoize: | |
""" | |
Memoize a function based on the arguments passed in. Example:: | |
@Memoize | |
def foo(x, y): return x + y | |
""" | |
def __init__(self, f): | |
self.__function = f | |
self.__cache = {} |
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
# Implementation ideas: | |
# run this past sentient to verify vector based approach is better than timeseries | |
# get better nutrient data from gen hydro catalogue | |
# run this past Arielle to see if this is a good default basil recipe | |
# check this against Dan's grow data to verify this is a good default basil recipe | |
# evaluate plausability of auto-generating this recipe format from Dan's grow data | |
# run this past x10 people on the team to see if this is an intuitive way to create recipes | |
# ask people on the forum if they like this method of creating recipes? | |
# Why is this idea interesting? |
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
{ | |
"_id": "long_test_recipe", | |
"format": "simple", | |
"operations": [ | |
[ | |
0, | |
"air_temperature", | |
25 | |
], | |
[ |
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
{ | |
"firmware_module": [ | |
{ | |
"_id": "ds18b20_1", | |
"type": "ds18b20", | |
"environment": "environment_1", | |
"arguments": [4], | |
"outputs": { | |
"temperature": {"variable": "water_temperature"} | |
} |
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
--[[ | |
Lua multimethods. Inspired by Clojure's multimethods. | |
How to use it: | |
local Multi = require('multimethods') | |
-- Create a new multimethod and use isa as dispatch function. | |
-- This will dispatch on first argument by type. | |
local foo = Multi.create(isa) |