Skip to content

Instantly share code, notes, and snippets.

# Copyright (c) 2018 Acroname Inc. - All Rights Reserved
#
# This file is part of the BrainStem development package.
# See file LICENSE or go to https://acroname.com/software/brainstem-development-kit for full license details.
import brainstem
# For easy access to error constants
from brainstem.result import Result
from time import sleep
import sys
import json
from PyQt6.QtWidgets import (
QApplication, QMainWindow, QVBoxLayout, QWidget, QComboBox, QPushButton, QLabel
)
from PyQt6.QtWebEngineWidgets import QWebEngineView
from PyQt6.QtCore import Qt
import folium
from io import BytesIO
import requests
There are options but the devices are limited (and the applications too)
Samsung S20 series are the last to have it (And I think the Plus is the best one for it)
Going a little older the Note 10 Plus as well (also an awesome phone)
Of the same vintage there are some other devices. You have to look at the ARCore device list and Ctrl F for "ToF" https://developers.google.com/ar/devices
As for applications that can take advantage of the ARCore depth mapping there's RTAB-Map and 3D Live Scanner
Type Song Title Song Artist Channel Number Channel Name Channel Category Time of Day Date Recorded Year
ID3 Soy Igual Que T Alexis & Fido f 85 Latin/World 0042 0812 2009
ID3 Baby Got Back Sir Mix-A-Lot 9 The 90s Decades 0113 3012 2007
ID3 Do You Remember Jay Sean Ft Sea 20 XM 20 on 20 Pop 2328 0801 2010
ID3 Point Of No Ret Expose 8 The 80s Decades 1632 3112 2007
ID3 Buffalo Stance Neneh Cherry 8 The 80s Decades 2105 3112 2007
ID3 P.Y.T. Michael Jackson 8 The 80s Decades 1347 0201 2008
ID3 Miami Will Smith 9 The 90s Decades 1353 0201 2008
ID3 Beautiful Life Ace Of Base 9 The 90s Decades 1314 0801 2008
ID3 Shake That Bubb Young & Divine 20 XM 20 on 20 Pop 0114 1002 2010
@parkerlreed
parkerlreed / scrcpy-gui
Last active November 27, 2024 08:49
Simple PyQT6 UI for scrcpy
import sys
import subprocess
import csv
import requests
from PyQt6.QtCore import QTimer, Qt
from PyQt6.QtWidgets import QApplication, QWidget, QVBoxLayout, QHBoxLayout, QPushButton, QLabel, QFrame
class ADBInterface(QWidget):
def __init__(self):
super().__init__()
@parkerlreed
parkerlreed / wii-scale.py
Last active November 25, 2024 22:52
Wii Balance Board Scale
import os
import struct
import time
import numpy as np
import pyfiglet # For ASCII art text
# Path to the joystick device
JOYSTICK_DEVICE = "/dev/input/js0"
# Joystick event format
@parkerlreed
parkerlreed / fnirsi-fnb58.py
Last active November 15, 2024 02:19
FNIRSI FNB58 Bluetoth data logger - Requires bleak - Currently prints voltage, amperage, and wattage: more may be possible
import asyncio
import struct
import sys
from bleak import BleakClient
# Bluetooth device address and attributes
DEVICE_ADDRESS = "98:DA:B0:08:A1:82" # Replace with your device's Bluetooth MAC address
WRITE_CHARACTERISTIC = "0000ffe9-0000-1000-8000-00805f9b34fb"
NOTIFY_CHARACTERISTIC = "0000ffe4-0000-1000-8000-00805f9b34fb"
@parkerlreed
parkerlreed / loader.py
Last active November 3, 2024 07:46
Lists ISOs in given folder and allows you to turn the Steam Deck into a flash drive - Currently requires passwordless sudo for rmmod and modprobe to be setup
#!/usr/bin/env python
import os
import subprocess
from PyQt6.QtWidgets import (
QApplication, QMainWindow, QVBoxLayout, QPushButton, QWidget, QMessageBox, QScrollArea, QVBoxLayout
)
class IsoLoaderApp(QMainWindow):
def __init__(self, iso_directory):
super().__init__()
@parkerlreed
parkerlreed / remote.py
Last active October 20, 2024 18:50
PyQT6 WebOS remote using PyWebOSTV
#!/usr/bin/env python
from pywebostv.discovery import * # Because I'm lazy, don't do this.
from pywebostv.connection import *
from pywebostv.controls import *
from PyQt6.QtWidgets import QApplication, QWidget, QGridLayout, QPushButton
from PyQt6.QtCore import Qt, QTimer
import sys
class RemoteControl(QWidget):
def __init__(self):
@parkerlreed
parkerlreed / dvd-saver
Last active September 29, 2024 07:43
Script to read tracks from corrupted/unfinalized DVD media
#!/bin/bash
# Device to read from
device="/dev/sr0"
# Get the current date and time
current_date_time=$(date +"%Y%m%d_%H%M%S")
# Function to parse the track information
parse_tracks() {