🧙♂️
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
/* global AFRAME */ | |
const COLLISION_LAYERS = require("../constants").COLLISION_LAYERS; | |
AFRAME.registerComponent("floaty-object", { | |
schema: { | |
// Make the object locked/kinematic upon load | |
autoLockOnLoad: { default: false }, | |
// Make the object kinematic immediately upon release | |
autoLockOnRelease: { default: false }, |
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
/* global AFRAME */ | |
const COLLISION_LAYERS = require("../constants").COLLISION_LAYERS; | |
AFRAME.registerComponent("sticky-object", { | |
schema: { resetScaleWhenGrabbed: { default: true } }, | |
init() { | |
this.currentSnapTarget = null; | |
const physicsSystem = this.el.sceneEl.systems["hubs-systems"].physicsSystem; |
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
using Printf | |
using Test | |
using DSP | |
using ImageFiltering | |
testData = readlines("testinput.txt") | |
realData = readlines("input.txt") | |
# Translates L => 1, . => 0 , # => -1 | |
function parseData(data) | |
replacement = Dict('L' => 1, '.'=>0,'#'=>-1) |
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
import os | |
os.add_dll_directory("C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v11.2/bin") | |
import tensorflow |