diff --git a/blag.md b/blag.md deleted file mode 100644 index 3d001df9..00000000 --- a/blag.md +++ /dev/null @@ -1,144 +0,0 @@ -This repo contains everything you need to build a super-cool robotics startup. ([shipfast](https://shipfa.st/) for robotics) -1. A react app for MMO-tele-operation + admin for ops, safety, understanding theory->practice. -2. A (react-native+livekit) app to code agents using on-device llm to gen correct prompts to auto-write infra+anything you want. -3. A deno server for server-side simulation, webgpu, and unity,unreal, nvidia omniverse integrations. -4. [sqlite+litestream for db](https://youtu.be/RqubKSF3wig?si=M6okGXrR_pyKB-8J) - + tailscale for connectivity + starlink for 5g in hard to reach places. - -https://github.com/uber-go/guide/blob/master/style.md - - - - - - - -#hardware (componennts, sensors, 3d-printing, arms, locomotion) -1. jetson containers - setting up basics (jetson inital inistall, jupyter, segment-anythin-2, flux -> paint robot paint -> diffusion3d) -2. roomba -# hardware (wiring, debugging, i forget) - - -https://gilberttanner.com/blog/jetson-nano-getting-started/ -> jetson orin - - -1. zed / phone -2. orin -3. roomba -4. arm - dynamixel - - - -Focus : - -1. blog = (projection mapping + sensors, arm, wheel) - -# building nanosaur -# building panther -======= - - - - - - - - - - - - 1. Hardware Components (locomotion, phallanges, 3d printing.) - 2. Robotics Sensors - 3. robotics mmo ui - 4. math magic. - ___ you and your research__ - - - - - - - - - - - - - - - - ->>>>>>> 998f36a (hihia) - -2022 - wizards gave idea for robot universtiy + every robots ' field' = datum of dynamic land - -july 11 - karparthy annoucned LLM school - i love llm -oct 16 - 25% launch of robot.odyssey(mario+import to any school.) \ No newline at end of file diff --git a/comments.txt b/comments.txt deleted file mode 100644 index b76c426f..00000000 --- a/comments.txt +++ /dev/null @@ -1,908 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/web-ui/js/views/cgi-tools/figma_to_animation.py b/notebooks_py/figma_to_animation.py similarity index 100% rename from web-ui/js/views/cgi-tools/figma_to_animation.py rename to notebooks_py/figma_to_animation.py diff --git a/package.json b/package.json deleted file mode 100644 index 0d312334..00000000 --- a/package.json +++ /dev/null @@ -1 +0,0 @@ -{ "dependencies": { "acorn-walk": "^8.3.4" } } \ No newline at end of file diff --git a/web-ui/GQxi-X-WwAEG7Fe.jpeg b/web-ui/GQxi-X-WwAEG7Fe.jpeg deleted file mode 100644 index a43334e0..00000000 Binary files a/web-ui/GQxi-X-WwAEG7Fe.jpeg and /dev/null differ diff --git a/web-ui/GTxTmKUXcAAdJC2.jpeg b/web-ui/GTxTmKUXcAAdJC2.jpeg deleted file mode 100644 index e730b8ab..00000000 Binary files a/web-ui/GTxTmKUXcAAdJC2.jpeg and /dev/null differ diff --git a/web-ui/Screenshot from 2024-08-21 08-29-38.png b/web-ui/Screenshot from 2024-08-21 08-29-38.png deleted file mode 100644 index 0f9145ce..00000000 Binary files a/web-ui/Screenshot from 2024-08-21 08-29-38.png and /dev/null differ diff --git a/web-ui/Screenshot from 2024-08-21 23-04-38.png b/web-ui/Screenshot from 2024-08-21 23-04-38.png deleted file mode 100644 index a7cf2269..00000000 Binary files a/web-ui/Screenshot from 2024-08-21 23-04-38.png and /dev/null differ diff --git a/web-ui/Screenshot from 2024-08-29 09-43-40.png b/web-ui/Screenshot from 2024-08-29 09-43-40.png deleted file mode 100644 index 1bf31e51..00000000 Binary files a/web-ui/Screenshot from 2024-08-29 09-43-40.png and /dev/null differ diff --git a/web-ui/js/views/DynamicLand_org.md b/web-ui/assets/DynamicLand_org.md similarity index 100% rename from web-ui/js/views/DynamicLand_org.md rename to web-ui/assets/DynamicLand_org.md diff --git a/web-ui/js/views/blag.md b/web-ui/assets/blag.md similarity index 100% rename from web-ui/js/views/blag.md rename to web-ui/assets/blag.md diff --git a/citations.txt b/web-ui/assets/citations.txt similarity index 100% rename from citations.txt rename to web-ui/assets/citations.txt diff --git a/citations_and_kindle_helper.ts b/web-ui/assets/citations_and_kindle_helper.ts similarity index 100% rename from citations_and_kindle_helper.ts rename to web-ui/assets/citations_and_kindle_helper.ts diff --git a/web-ui/js/views/odyssey/demon-mirror-wall.css b/web-ui/assets/demon-mirror-wall.css similarity index 100% rename from web-ui/js/views/odyssey/demon-mirror-wall.css rename to web-ui/assets/demon-mirror-wall.css diff --git a/web-ui/deps.json b/web-ui/assets/deps.json similarity index 100% rename from web-ui/deps.json rename to web-ui/assets/deps.json diff --git a/files.json b/web-ui/assets/files.json similarity index 100% rename from files.json rename to web-ui/assets/files.json diff --git a/web-ui/js/helper_ws_client_chrome_extension/README.md b/web-ui/assets/helper_ws_client_chrome_extension/README.md similarity index 100% rename from web-ui/js/helper_ws_client_chrome_extension/README.md rename to web-ui/assets/helper_ws_client_chrome_extension/README.md diff --git a/web-ui/js/helper_ws_client_chrome_extension/helper_ws_client_chrome_extension.js b/web-ui/assets/helper_ws_client_chrome_extension/helper_ws_client_chrome_extension.js similarity index 100% rename from web-ui/js/helper_ws_client_chrome_extension/helper_ws_client_chrome_extension.js rename to web-ui/assets/helper_ws_client_chrome_extension/helper_ws_client_chrome_extension.js diff --git a/web-ui/js/helper_ws_client_chrome_extension/icons/socket-active.png b/web-ui/assets/helper_ws_client_chrome_extension/icons/socket-active.png similarity index 100% rename from web-ui/js/helper_ws_client_chrome_extension/icons/socket-active.png rename to web-ui/assets/helper_ws_client_chrome_extension/icons/socket-active.png diff --git a/web-ui/js/helper_ws_client_chrome_extension/icons/socket-inactive.png b/web-ui/assets/helper_ws_client_chrome_extension/icons/socket-inactive.png similarity index 100% rename from web-ui/js/helper_ws_client_chrome_extension/icons/socket-inactive.png rename to web-ui/assets/helper_ws_client_chrome_extension/icons/socket-inactive.png diff --git a/web-ui/js/helper_ws_client_chrome_extension/manifest.json b/web-ui/assets/helper_ws_client_chrome_extension/manifest.json similarity index 100% rename from web-ui/js/helper_ws_client_chrome_extension/manifest.json rename to web-ui/assets/helper_ws_client_chrome_extension/manifest.json diff --git a/web-ui/js/views/odyssey/human_robot.txt b/web-ui/assets/human_robot.txt similarity index 100% rename from web-ui/js/views/odyssey/human_robot.txt rename to web-ui/assets/human_robot.txt diff --git a/web-ui/index.html b/web-ui/index.html new file mode 100644 index 00000000..ca131f8e --- /dev/null +++ b/web-ui/index.html @@ -0,0 +1,129 @@ + + + +
+ + + + + + + + + + + + + + + + + + + + + Robotics Odyssey + + + + + + + + +
+ + + + CSS 3D Perspective Animation + + + + + + +
+
+ + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/web-ui/js/views/llama-tools/Derp-infrastructor.ts b/web-ui/js/Derp-infrastructor.ts similarity index 100% rename from web-ui/js/views/llama-tools/Derp-infrastructor.ts rename to web-ui/js/Derp-infrastructor.ts diff --git a/web-ui/js/bun-helper-server.tsx b/web-ui/js/bun-helper-server.tsx new file mode 100644 index 00000000..d515d077 --- /dev/null +++ b/web-ui/js/bun-helper-server.tsx @@ -0,0 +1,271 @@ +const ollama = require('ollama'); +import {$} from 'bun' +import { renderToString } from "react-dom/server"; +import React, {lazy } from 'react'; +import Bun from 'bun' +import fs from "fs"; +import path from "path"; +//import { connect_to_livekit } from 'js/bun-livekit-server.js' +//import llamaRoutes from 'js/llama-backend.js' +//import CgiRoutes from 'js/bun_handlers/cgi-backend.js' +const port = 3002; +console.log(`Server running at http://localhost:${port}`); +//import Blag from "./blag.jsx"; + + +function serveBlag(req: Request) { + const filePath = path.join(process.cwd(), "js/views/blag.html"); + console.log('filePath', filePath) + let indexHtmlContent = fs.readFileSync(filePath, "utf-8"); + + const blag = indexHtmlContent.replace( + "{{template blag}}", + `${renderToString()}`, + ); + + return new Response(blag, { + headers: { + "Content-Type": "text/html", + }, + }); +} + +function on_save_blag(req: Request) { + ollama.generate({ + model: "llama3.2", + prompt: "predict if there are errors before running thiss" + }) + //run thing + ollama.generate({ + //model: "llama3.2", + model: "llama3.2", + prompt: "if errors - suggest fixes" + }) +} + +async function serveBlagArchive(req: Request) { + try { + const filePath = path.join(process.cwd(), "docs/blag/index.md"); + const markdownContent = fs.readFileSync(filePath, "utf-8"); + const lines = markdownContent.split('\n') + const docsPath = path.join(process.cwd(), 'docs'); + if (!fs.existsSync(docsPath)) { + fs.mkdirSync(docsPath, { recursive: true }); + } + + const content = `${lines.map((line, i) => { + + if (line.startsWith('#')) { + return `

${line.slice(2)}

`; + } + + const cleanedLine = line.slice(3).replace(/[^a-zA-Z0-9\s-]/g, '').trim(); + + if (cleanedLine === ' ') { + return ''; + } + const simplifiedLink = cleanedLine.replace(/\s+/g, '-').toLowerCase(); + + return `
${cleanedLine}
`; + }).join('
')}`; + + return new Response(content, { + headers: { + "Content-Type": "text/html", + }, + }); + } catch (error) { + console.error('Error in serveBlagArchive:', error); + return new Response('An error occurred while processing your request', { status: 500 }); + } +} + +function saveScreenShare() { + +} + +function ReplayAnalyzer() { +// startEgress('example-room') + return (
+

Replay Analyzer

+ +
+
+ + + + +
+ +
+

Results of the replay analysis will appear here...

+
+
+ +
+

© 2023 Replay Analyzer. All rights reserved.

+
+
+ ); +} +function replay_analyzer(req: Request) { + const replay_html = renderToString() + return new Response(replay_html, { + headers: { + "Content-Type": "text/html", + }, + }); +} + +async function placeholder_screenshare(req: Request) { + const screenshot = await req.json(); + const fs = require('fs'); + const path = require('path'); + + const screenshotBuffer = Buffer.from(screenshot.screenshot.split(',')[1], 'base64'); + const screenshotPath = path.join(__dirname, 'screenshots', `screenshot-${Date.now()}.png`); + + fs.writeFileSync(screenshotPath, screenshotBuffer); + + return new Response(JSON.stringify({ message: 'Screenshot saved successfully.' }), { + headers: { + 'Content-Type': 'application/json', + }, + }); +} + +// const CgiRoutesHandlers = Object.fromEntries( +// Object.entries(CgiRoutes).map(([key, value]) => [`/cgi-tools${key}`, value]) +// ); + +// const llamaRoutesHandlers = Object.fromEntries( +// Object.entries(llamaRoutes).map(([key, value]) => [`/llama-tools${key}`, value]) +// ); +const routes = { + "/api/placeholder_screenshare": (req: Request) => placeholder_screenshare(req), + + "/api/livekit_connect": (req: Request) => livekit_connect(req), + "/api/replay_analyzer": (req: Request) => replay_analyzer(req), + ///"/os/*": (req: Request) => os_automation(req), + "/": (req: Request) => serveBlag(req), + "/blag": (req: Request) => serveBlag(req), + //"/llama-tools": (req: Request) => serveLlamaTools(req), + //"/cgi-tools": (req: Request) => serveCgiTools(req), + "/blag-archive": (req: Request) => serveBlagArchive(req), + // ...CgiRoutesHandlers, + // ...llamaRoutesHandlers + + + "/api/magic_llama": (req: Request) => magic_llama(req), + } + main(); + +async function main() { + Bun.serve({ + port, + fetch, + reusePort: true, + + }); +} +console.log('bun-helper-server') +async function fetch(req: Request) { + const url = new URL(req.url); + console.log('bun-helper', url.pathname) + if (!req.url) { + console.error('Request URL is undefined'); + return new Response('Invalid request', { status: 400 }); + } + + if (url.pathname.startsWith("/api/magic_llama")) { + console.log('magic_llama', url.pathname) + return await magic_llama(req) + } + + + if (url.pathname.startsWith("/blag/")) { + const route = url.pathname.replace("/blag/", ""); + const filePath = `./docs/${route}.md`; + try { + await Bun.write(filePath, `# ${route}\n\nContent for ${route}`); + const fileExists = await Bun.file(filePath).exists(); + if (fileExists) { + return new Response(await Bun.file(filePath).text(), { status: 200 }); + } else { + const prompt = `Generate a paragraph of PhD level content and 10 citations related to the topic described in the file: ${filePath}`; + + const response = await ollama.chat({ + model: 'llama3.1', + messages: [{ role: 'user', content: prompt }], + }) + + const generatedContent = await response.message.content; + const content = generatedContent.text; + + await Bun.write(filePath, content); + return new Response(content, { status: 200 }); + } + } catch (error) { + console.error('Error creating file:', error); + return new Response('An error occurred while creating the file', { status: 500 }); + } + } + + if (url.pathname.startsWith("/assets")) return Bun.file('/Users/shelbernstein/homelab_status_page/web-ui/assets/output.css') + + if (url.pathname.startsWith("/webhook")) return webhook(req) + + if (routes[url.pathname]) { //handles all HTTPS JSON regular bear routes + return routes[url.pathname](req) + } + if (url.pathname.startsWith("/proxy")) { + const targetUrl = url.pathname.replace("/proxy", ""); + if (targetUrl === "") { + return new Response("how to proxy??? - try /proxy/https://google.com", { + headers: { + "Content-Type": "text/html", + }, + }); + } + } +} + + +// convert all books to music videos - read aloud + show diagrms - interactive if psosibel +function webhook(req: Request) { + //console.log('webhook', req) + return new Response('webhook') +} + + +async function magic_llama(req: Request) { + const url = new URL(req.url); + const prompt = url.searchParams.get('msg') || ''; + console.log('msg', prompt) + // const response = await ollama.chat({ + // model: 'llama3.1', + // messages: [{ role: 'user', content: prompt }], + // }) + console.time('magic_llama') + const magic_llama_response = await $`ollama run llama3.2 ${prompt}` + .quiet() + console.timeEnd('magic_llama') + const json_response = { + + response: magic_llama_response.stdout.toString().trim(), + hasError: magic_llama_response.stderr.toString().trim(), + } + + console.log('response',json_response) + return new Response(JSON.stringify(json_response), { + headers: { + "Content-Type": "application/json", + }, + }); +} + + + + + + diff --git a/web-ui/js/bun_main_server.tsx b/web-ui/js/bun_main_server.tsx new file mode 100644 index 00000000..53b94a35 --- /dev/null +++ b/web-ui/js/bun_main_server.tsx @@ -0,0 +1,114 @@ +import { spawn } from 'child_process'; +const fs = require('fs'); +const buns = [] +const port = 3333; +//const parlay_to_vite = make_parlay('bun') +//const parlay_to_api = make_parlay(3002, 'bun', 'js/bun-helper-server.tsx') + +const cpus = navigator.hardwareConcurrency; // Number of CPU cores + + +Bun.serve({ + websocket: make_ws(), + port, + fetch(req) { + //console.log('fetch', req) + const url = new URL(req.url); + console.log('bun-main', url.pathname) + + if (url.pathname === '/favicon.ico') { + return new Response(null, { status: 404 }); + } + if (url.pathname.startsWith('/api')) return parlay_to_api(req, url) + else + return parlay_to_vite(req, url) + + // Return the Vite server's response to the client + }, // The port your proxy server will listen on +}); +console.log("server running on port", port); + + +// function kill() { +// for (const bun of buns) { +// console.log('cool') +// bun.kill(); +// } +// } + +// process.on("SIGINT", kill); +// process.on("exit", kill); + + function make_ws () { + return { + open(ws) { console.log("WebSocket connection opened"); }, + message(ws, message) { console.log("Received message:", message) }, + close(ws, code, message) { console.log("WebSocket connection closed"); }, + } +} + + function make_parlay(process_name) { + const bunHelperServer = startBunHelperServer(process_name, false) + buns.push(bunHelperServer); + + return async function (req, url) { + console.log('parlay', url, port) + url.port = port; // Forward to Vite server's port + url.hostname = "localhost"; // Assuming Vite is running locally + + const response = await fetch(url.toString(), { + method: req.method, + headers: req.headers, + body: req.body, + duplex: 'half', // Necessary for streaming request bodies + }); + + return response; + } +} + +function startBunHelperServer(bun_name, other_args) { + const bunHelperServer = spawn(bun_name, [...other_args], { + stdio: 'inherit', + }); + + bunHelperServer.on('close', (code) => { + console.log(`bun-helper-server.tsx process exited with code ${code}`); + }); + + bunHelperServer.on('error', (err) => { + console.error('Failed to start bun-helper-server.tsx:', err); + }); + return bunHelperServer +} + + +async function parlay_to_vite(req, url) { + console.log('parlay', url, port) + url.port = 8002; // Forward to Vite server's port + url.hostname = "localhost"; // Assuming Vite is running locally + + const response = await fetch(url.toString(), { + method: req.method, + headers: req.headers, + body: req.body, + duplex: 'half', // Necessary for streaming request bodies + }); + +return response; +} + +async function parlay_to_api(req, url) { + //console.log('parlay', url, port) + url.port = 8002; // Forward to Vite server's port + url.hostname = "localhost"; // Assuming Vite is running locally + + const response = await fetch(url.toString(), { + method: req.method, + headers: req.headers, + body: req.body, + duplex: 'half', // Necessary for streaming request bodies + }); + +return response; +} \ No newline at end of file diff --git a/web-ui/js/bun_rtsp/.gitignore b/web-ui/js/bun_rtsp/.gitignore deleted file mode 100644 index 468f82a1..00000000 --- a/web-ui/js/bun_rtsp/.gitignore +++ /dev/null @@ -1,175 +0,0 @@ -# Based on https://raw.githubusercontent.com/github/gitignore/main/Node.gitignore - -# Logs - -logs -_.log -npm-debug.log_ -yarn-debug.log* -yarn-error.log* -lerna-debug.log* -.pnpm-debug.log* - -# Caches - -.cache - -# Diagnostic reports (https://nodejs.org/api/report.html) - -report.[0-9]_.[0-9]_.[0-9]_.[0-9]_.json - -# Runtime data - -pids -_.pid -_.seed -*.pid.lock - -# Directory for instrumented libs generated by jscoverage/JSCover - -lib-cov - -# Coverage directory used by tools like istanbul - -coverage -*.lcov - -# nyc test coverage - -.nyc_output - -# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files) - -.grunt - -# Bower dependency directory (https://bower.io/) - -bower_components - -# node-waf configuration - -.lock-wscript - -# Compiled binary addons (https://nodejs.org/api/addons.html) - -build/Release - -# Dependency directories - -node_modules/ -jspm_packages/ - -# Snowpack dependency directory (https://snowpack.dev/) - -web_modules/ - -# TypeScript cache - -*.tsbuildinfo - -# Optional npm cache directory - -.npm - -# Optional eslint cache - -.eslintcache - -# Optional stylelint cache - -.stylelintcache - -# Microbundle cache - -.rpt2_cache/ -.rts2_cache_cjs/ -.rts2_cache_es/ -.rts2_cache_umd/ - -# Optional REPL history - -.node_repl_history - -# Output of 'npm pack' - -*.tgz - -# Yarn Integrity file - -.yarn-integrity - -# dotenv environment variable files - -.env -.env.development.local -.env.test.local -.env.production.local -.env.local - -# parcel-bundler cache (https://parceljs.org/) - -.parcel-cache - -# Next.js build output - -.next -out - -# Nuxt.js build / generate output - -.nuxt -dist - -# Gatsby files - -# Comment in the public line in if your project uses Gatsby and not Next.js - -# https://nextjs.org/blog/next-9-1#public-directory-support - -# public - -# vuepress build output - -.vuepress/dist - -# vuepress v2.x temp and cache directory - -.temp - -# Docusaurus cache and generated files - -.docusaurus - -# Serverless directories - -.serverless/ - -# FuseBox cache - -.fusebox/ - -# DynamoDB Local files - -.dynamodb/ - -# TernJS port file - -.tern-port - -# Stores VSCode versions used for testing VSCode extensions - -.vscode-test - -# yarn v2 - -.yarn/cache -.yarn/unplugged -.yarn/build-state.yml -.yarn/install-state.gz -.pnp.* - -# IntelliJ based IDEs -.idea - -# Finder (MacOS) folder config -.DS_Store diff --git a/web-ui/js/bun_rtsp/README.md b/web-ui/js/bun_rtsp/README.md deleted file mode 100644 index 2eba5079..00000000 --- a/web-ui/js/bun_rtsp/README.md +++ /dev/null @@ -1,15 +0,0 @@ -# bun_rtsp - -To install dependencies: - -```bash -bun install -``` - -To run: - -```bash -bun run index.ts -``` - -This project was created using `bun init` in bun v1.0.23. [Bun](https://bun.sh) is a fast all-in-one JavaScript runtime. diff --git a/web-ui/js/bun_rtsp/index.js b/web-ui/js/bun_rtsp/index.js deleted file mode 100644 index f67b2c64..00000000 --- a/web-ui/js/bun_rtsp/index.js +++ /dev/null @@ -1 +0,0 @@ -console.log("Hello via Bun!"); \ No newline at end of file diff --git a/web-ui/js/bun_rtsp/livekit_app.js b/web-ui/js/bun_rtsp/livekit_app.js deleted file mode 100644 index dbf2cf1c..00000000 --- a/web-ui/js/bun_rtsp/livekit_app.js +++ /dev/null @@ -1,9 +0,0 @@ -// javscirpt for shit you actually need - -// go for fun - -//zig for fun - -//python is in between - -//[] -//https://github.com/livekit/node-sdks diff --git a/web-ui/js/bun_rtsp/package.json b/web-ui/js/bun_rtsp/package.json deleted file mode 100644 index 2a04f95d..00000000 --- a/web-ui/js/bun_rtsp/package.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "name": "bun_rtsp", - "module": "index.ts", - "type": "module", - "devDependencies": { - "@types/bun": "latest" - }, - "peerDependencies": { - "typescript": "^5.0.0" - }, - "dependencies": { - "livekit-server-sdk": "^2.7.0" - } -} diff --git a/web-ui/js/bun_rtsp/tsconfig.json b/web-ui/js/bun_rtsp/tsconfig.json deleted file mode 100644 index dcd8fc51..00000000 --- a/web-ui/js/bun_rtsp/tsconfig.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "compilerOptions": { - "lib": ["ESNext"], - "target": "ESNext", - "module": "ESNext", - "moduleDetection": "force", - "jsx": "react-jsx", - "allowJs": true, - - /* Bundler mode */ - "moduleResolution": "bundler", - "allowImportingTsExtensions": true, - "verbatimModuleSyntax": true, - "noEmit": true, - - /* Linting */ - "skipLibCheck": true, - "strict": true, - "noFallthroughCasesInSwitch": true, - "forceConsistentCasingInFileNames": true - } -} diff --git a/web-ui/js/bun_rtsp/yarn.lock b/web-ui/js/bun_rtsp/yarn.lock deleted file mode 100644 index 79e489e0..00000000 --- a/web-ui/js/bun_rtsp/yarn.lock +++ /dev/null @@ -1,105 +0,0 @@ -# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. -# yarn lockfile v1 - - -"@bufbuild/protobuf@^1.10.0": - version "1.10.0" - resolved "https://registry.yarnpkg.com/@bufbuild/protobuf/-/protobuf-1.10.0.tgz#1a67ac889c2d464a3492b3e54c38f80517963b16" - integrity sha512-QDdVFLoN93Zjg36NoQPZfsVH9tZew7wKDKyV5qRdj8ntT4wQCOradQjRaTdwMhWUYsgKsvCINKKm87FdEk96Ag== - -"@livekit/protocol@^1.23.0": - version "1.23.0" - resolved "https://registry.yarnpkg.com/@livekit/protocol/-/protocol-1.23.0.tgz#95108ef596b6b5e9364b49e875d4c8af2eac426f" - integrity sha512-Hh83moW437mWhiyRgoDMedJ/s/rCTfe3ACSaIJ3n2NlVaq/+BTuB/yH7a6alM1NEkGBSmgrEHxabDfozVUlgYg== - dependencies: - "@bufbuild/protobuf" "^1.10.0" - -"@types/bun@latest": - version "1.1.10" - resolved "https://registry.yarnpkg.com/@types/bun/-/bun-1.1.10.tgz#beba9dd5e5890928589889ad7166b94bb4673a31" - integrity sha512-76KYVSwrHwr9zsnk6oLXOGs9KvyBg3U066GLO4rk6JZk1ypEPGCUDZ5yOiESyIHWs9cx9iC8r01utYN32XdmgA== - dependencies: - bun-types "1.1.29" - -"@types/node@*": - version "22.7.4" - resolved "https://registry.yarnpkg.com/@types/node/-/node-22.7.4.tgz#e35d6f48dca3255ce44256ddc05dee1c23353fcc" - integrity sha512-y+NPi1rFzDs1NdQHHToqeiX2TIS79SWEAw9GYhkkx8bD0ChpfqC+n2j5OXOCpzfojBEBt6DnEnnG9MY0zk1XLg== - dependencies: - undici-types "~6.19.2" - -"@types/node@~20.12.8": - version "20.12.14" - resolved "https://registry.yarnpkg.com/@types/node/-/node-20.12.14.tgz#0c5cf7ef26aedfd64b0539bba9380ed1f57dcc77" - integrity sha512-scnD59RpYD91xngrQQLGkE+6UrHUPzeKZWhhjBSa3HSkwjbQc38+q3RoIVEwxQGRw3M+j5hpNAM+lgV3cVormg== - dependencies: - undici-types "~5.26.4" - -"@types/ws@~8.5.10": - version "8.5.12" - resolved "https://registry.yarnpkg.com/@types/ws/-/ws-8.5.12.tgz#619475fe98f35ccca2a2f6c137702d85ec247b7e" - integrity sha512-3tPRkv1EtkDpzlgyKyI8pGsGZAGPEaXeu0DOj5DI25Ja91bdAYddYHbADRYVrZMRbfW+1l5YwXVDKohDJNQxkQ== - dependencies: - "@types/node" "*" - -bun-types@1.1.29: - version "1.1.29" - resolved "https://registry.yarnpkg.com/bun-types/-/bun-types-1.1.29.tgz#52ab2f4905adafc6a625b715c45be1e25b150609" - integrity sha512-En3/TzSPMPyl5UlUB1MHzHpcrZDakTm7mS203eLoX1fBoEa3PW+aSS8GAqVJ7Is/m34Z5ogL+ECniLY0uDaCPw== - dependencies: - "@types/node" "~20.12.8" - "@types/ws" "~8.5.10" - -camelcase-keys@^9.0.0: - version "9.1.3" - resolved "https://registry.yarnpkg.com/camelcase-keys/-/camelcase-keys-9.1.3.tgz#6367b2f9ec5724af541f58f0dcfee9b200022e5c" - integrity sha512-Rircqi9ch8AnZscQcsA1C47NFdaO3wukpmIRzYcDOrmvgt78hM/sj5pZhZNec2NM12uk5vTwRHZ4anGcrC4ZTg== - dependencies: - camelcase "^8.0.0" - map-obj "5.0.0" - quick-lru "^6.1.1" - type-fest "^4.3.2" - -camelcase@^8.0.0: - version "8.0.0" - resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-8.0.0.tgz#c0d36d418753fb6ad9c5e0437579745c1c14a534" - integrity sha512-8WB3Jcas3swSvjIeA2yvCJ+Miyz5l1ZmB6HFb9R1317dt9LCQoswg/BGrmAmkWVEszSrrg4RwmO46qIm2OEnSA== - -jose@^5.1.2: - version "5.9.3" - resolved "https://registry.yarnpkg.com/jose/-/jose-5.9.3.tgz#6eba1ee3f70b42891f0e1883fe0084a46dbbe02c" - integrity sha512-egLIoYSpcd+QUF+UHgobt5YzI2Pkw/H39ou9suW687MY6PmCwPmkNV/4TNjn1p2tX5xO3j0d0sq5hiYE24bSlg== - -livekit-server-sdk@^2.7.0: - version "2.7.0" - resolved "https://registry.yarnpkg.com/livekit-server-sdk/-/livekit-server-sdk-2.7.0.tgz#58d0e088631e0c95bb47ceb3fe60141219fe0fe5" - integrity sha512-UdP8FVIOrAJg9dhPNSWGAYV2ZlWFkSroYW3A2BKn8HMlaFMbuXjMouITiU4HuoiH/40/5gE6e+1YPj3aebdi4g== - dependencies: - "@livekit/protocol" "^1.23.0" - camelcase-keys "^9.0.0" - jose "^5.1.2" - -map-obj@5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/map-obj/-/map-obj-5.0.0.tgz#126c98596b63927d7360f287cccc67177aa1938b" - integrity sha512-2L3MIgJynYrZ3TYMriLDLWocz15okFakV6J12HXvMXDHui2x/zgChzg1u9mFFGbbGWE+GsLpQByt4POb9Or+uA== - -quick-lru@^6.1.1: - version "6.1.2" - resolved "https://registry.yarnpkg.com/quick-lru/-/quick-lru-6.1.2.tgz#e9a90524108629be35287d0b864e7ad6ceb3659e" - integrity sha512-AAFUA5O1d83pIHEhJwWCq/RQcRukCkn/NSm2QsTEMle5f2hP0ChI2+3Xb051PZCkLryI/Ir1MVKviT2FIloaTQ== - -type-fest@^4.3.2: - version "4.26.1" - resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-4.26.1.tgz#a4a17fa314f976dd3e6d6675ef6c775c16d7955e" - integrity sha512-yOGpmOAL7CkKe/91I5O3gPICmJNLJ1G4zFYVAsRHg7M64biSnPtRj0WNQt++bRkjYOqjWXrhnUw1utzmVErAdg== - -undici-types@~5.26.4: - version "5.26.5" - resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-5.26.5.tgz#bcd539893d00b56e964fd2657a4866b221a65617" - integrity sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA== - -undici-types@~6.19.2: - version "6.19.8" - resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-6.19.8.tgz#35111c9d1437ab83a7cdc0abae2f26d88eda0a02" - integrity sha512-ve2KP6f/JnbPBFyobGHuerC9g1FYGn/F8n1LWTwNxCEzd6IfqTwUQcNXgEtmmQ6DlRrC1hrSrBnCZPokRrDHjw== diff --git a/web-ui/js/helpers/Kent_Beck_robusteness.js b/web-ui/js/helpers/Kent_Beck_robusteness.js index f6b8f8a3..0407cf6c 100644 --- a/web-ui/js/helpers/Kent_Beck_robusteness.js +++ b/web-ui/js/helpers/Kent_Beck_robusteness.js @@ -118,41 +118,6 @@ async function runAllAgents(directory) { //anthropci ---- 200k maximum //gemini 2 million token context window - - - // Move all JSX and TSX files to a folder called 'views' - const moveFilesToViews = async () => { - const viewsDir = path.join(root_dir, 'views'); - if (!fs.existsSync(viewsDir)) { - fs.mkdirSync(viewsDir); - } - - files.filter(file => file.endsWith('.jsx') || file.endsWith('.tsx')).forEach(file => { - const newFilePath = path.join(viewsDir, path.basename(file)); - fs.renameSync(file, newFilePath); - console.log(`Moved ${file} to ${newFilePath}`); - }); - }; - - // Move all HTML files to a folder called 'views/archive' - const moveHtmlFilesToArchive = async () => { - const archiveDir = path.join(root_dir, 'views', 'archive'); - if (!fs.existsSync(archiveDir)) { - fs.mkdirSync(archiveDir, { recursive: true }); - } - - files.filter(file => file.endsWith('.html')).forEach(file => { - const newFilePath = path.join(archiveDir, path.basename(file)); - fs.renameSync(file, newFilePath); - console.log(`Moved ${file} to ${newFilePath}`); - }); - }; - - await moveFilesToViews(); - await moveHtmlFilesToArchive(); - - - } runAllAgents() \ No newline at end of file diff --git a/web-ui/js/views/citations.md b/web-ui/js/views/citations.md deleted file mode 100644 index 91ea510a..00000000 --- a/web-ui/js/views/citations.md +++ /dev/null @@ -1,9 +0,0 @@ -https://www.youtube.com/watch?v=XnsRdaZTMas&t=2801s -https://www.stereolabs.com/docs/gstreamer/rtsp-server -https://docs.expo.dev/tutorial/create-your-first-app/ -https://www.youtube.com/watch?v=5g2Tn0-y4bE - -https://web.archive.org/web/20200506114350/https://observablehq.com/ - - -https://observablehq.com/@rreusser/strange-attractors-on-the-gpu-part-1 \ No newline at end of file diff --git a/web-ui/js/views/index.md b/web-ui/js/views/index.md deleted file mode 100644 index a4702049..00000000 --- a/web-ui/js/views/index.md +++ /dev/null @@ -1,97 +0,0 @@ ----- - title: robotics odyssey - description: learn robotics by building a robot - image: /images/robotics-odyssey.png - tags: - - robotics - - odyssey - - learn - - build - - robot ---- -asdfasdf - - - -
-asdflaskdjflaskjflasdkfj asdfasdfasdf -
- -asdfasdf - - -asdfas - - - - - - - - - - - - - -```tex - -\[ -E = mc^2 -\] - -\[ -\int_{a}^{b} x^2 \, dx = \frac{b^3}{3} - \frac{a^3}{3} -\] - -\[ -F = G \frac{m_1 m_2}{r^2} -\] - -\[ -\frac{d}{dx}e^x = e^x -\] - -\[ -\sum_{n=1}^{\infty} \frac{1}{n^2} = \frac{\pi^2}{6} -\] - -``` - - -right practice = good - outleirs + sicp - -practice + thoery = better - - - ---- -sql -select * from files; ---- -flocking -webgpu streaming from desktop + all other devices --- share compute --- from scratch or from the module - -infra - test latency numbers on yours and mine - p2p robots - - -Plot.plot({ - projection: "identity", - width: 975, - height: 610, - marks: [ - Plot.geo(countiesmesh, {strokeOpacity: 0.5}), - Plot.geo(statemesh, {strokeWidth: 0.75}), - Plot.geo(nation, {strokeWidth: 1.5}) - ] -}) - - -c = \pm\sqrt{a^2 + b^2} -https://observablehq.com/plot/ - - -https://101.school/courses/physics-101 - chatbot + twitch chat -> issues commands to queue - -test gen diff --git a/web-ui/js/views/odyssey/_.js b/web-ui/js/views/odyssey/_.js deleted file mode 100644 index 80042d6b..00000000 --- a/web-ui/js/views/odyssey/_.js +++ /dev/null @@ -1,287 +0,0 @@ -import { motion } from 'framer-motion' -import { useRef, useEffect } from 'react' -import { Runtime, Inspector } from '@observablehq/runtime' -import notebook from '@roboticsuniversity/agent-dashboard' -import { ChevronRightIcon } from '@heroicons/react/16/solid' - -import { - Disclosure, - DisclosureButton, - DisclosurePanel -} from '@headlessui/react' -import { Bars2Icon } from '@heroicons/react/24/solid' -import { Logo } from './logo' - -// use lots of negative space ---??? maybe ---- try ------ clairty js to see how people fele? - -// also ->>> experiment with alayouts and make it easy to swap layouts super easy - -// prompt -> gen codde -> 3 widgets -> replace them as wyou swish -> radio - -import * as Headless from '@headlessui/react' - -import { clsx } from 'clsx' - -function Link ({ href, className }) { - return -} - -function PlusGrid ({ className = '', children }) { - return
{children}
-} - -function PlusGridRow ({ className = '', children }) { - return ( -
-