Skip to content

Instantly share code, notes, and snippets.

View kcarlson's full-sized avatar

Kristoffer Carlson kcarlson

  • Stockholm, Sweden
View GitHub Profile
@kcarlson
kcarlson / json-to-proto.js
Last active February 19, 2024 17:28
Convert json to protobuf message in browser
const isEmptyObject = obj =>
typeof obj === "object" &&
Object.keys(obj).length === 0 &&
obj.constructor === Object;
const createProxy = msg => {
if (!msg || typeof msg !== "object") {
return msg;
}
if (Array.isArray(msg)) {
@kcarlson
kcarlson / README.md
Created February 4, 2022 18:24
ocellus-save

Ocellus Save Subflow

This node saves the ocellus configuration to: ~/.config/unity3d/Byte\ Motion/Ocellus/default.ocl on the host computer. NOTE: This is not accessable unless mounted to the docker container.