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
Ok! |
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
// | |
// ContentView.swift | |
// playing2 | |
// | |
// Created by Scott O'Brien on 12/29/22. | |
// | |
import SwiftUI | |
import RealityKit | |
import ARKit |
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 cv2 | |
import cv2.aruco as aruco | |
import numpy as np | |
from enum import Enum | |
from math import cos, sin | |
import pandas as pd | |
# define a video capture object (continuinity camera) | |
# Swap it out in the instance of it picking the internal MacBook camera | |
# (why it's not constant I don't know) |
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
// All dimensions are in mm | |
width = 1.5; | |
cubeWidth = 20; | |
outerWidth = cubeWidth + width; | |
height = 5; | |
difference() { | |
cube([outerWidth, outerWidth, height], center = true); | |
cube([cubeWidth, cubeWidth, 20], center = true); |
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 code will be used as a demo to controll the mouse and keyboard from an Arduino Leonardo. | |
It shows an example of recieving commands from a remote Bluetooth endpoint (be it computer, mobile phone, etc) and using those commands to control | |
the mouse and keyboard of a locally connected USB target. | |
Any character that gets recieved will be typed into the keyboard, unless that character is a '#' which we will use to toggle between mouse and keyboard modes | |
Once in mouse mode, the following characters will be used as commands: | |
'u': Move the mouse up | |
'd': Move the mouse down |
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
[scott@node02 cogg]$ cat map.tin | |
#VAR {previousRoom} {""}; | |
#VAR {currentRoom} {""}; | |
#NOP --- | |
#NOP - Either creates or go-to's the room ID seenEither creates or go-to's the room ID seenEither creates or go-to's the room ID seenEither creates or go-to's the room ID seen | |
#NOP -- | |
#action {::ROOM-ID-%1::} { | |
#VAR {previousRoom} {$currentRoom}; | |
#VAR {currentRoom} {%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
[ | |
{ | |
"backcolor": "#dbdbdb", | |
"name": "Apple Wireless Keyboard", | |
"author": "Alistair Calder", | |
"radii": "6px 6px 12px 12px / 18px 18px 12px 12px" | |
}, | |
[ | |
{ | |
"y": 0.75, |
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 System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using VRTK; | |
public class VRTK_RadialPoint : MonoBehaviour { | |
public VRTK_DestinationMarker pointer; | |
public VRTK_RadialMenuController radialController; | |
public const int angle_offset = 90; |
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 System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class VRTK_CursorMouse : VRTK.VRTK_StraightPointerRenderer { | |
public Camera camera; | |
public Transform hand; | |
protected override Transform GetOrigin(bool smoothed = true) { |
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 django.db import models | |
# Create your models here. | |
class PatchPanel(models.Model): | |
""" | |
Represents a physical patch panel. This could be a FOBOT or a Krone frame. Whatever really | |
""" | |
name = models.CharField(max_length=100, null=False, blank=True, unique=True, help_text="The name used to identify the panel. (Eg. B15 PABX Panel K)") | |
outlets = models.IntegerField(help_text="The number of outlets on the panel") |
NewerOlder