This file contains hidden or 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
<script lang="ts"> | |
let gyro = new Gyroscope({ frequency: 60 }); | |
let x = 0, | |
y = 0, | |
z = 0; | |
gyro.addEventListener("reading", () => { | |
x += gyro.x; |
This file contains hidden or 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 node:20-alpine AS base | |
FROM base AS dependencies | |
RUN apk add --no-cache libc6-compat | |
WORKDIR /app | |
COPY package.json pnpm-lock.yaml ./ | |
RUN corepack enable pnpm | |
RUN pnpm i --frozen-lockfile |
This file contains hidden or 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
clone () { | |
if [ -z "$1" ]; then | |
echo "Usage: clone <username> <repository> OR clone <repository> after setting up the default username" | |
return 1 | |
fi | |
username="$1" | |
if [ -z "$2" ]; then | |
username="simulationguest" | |
repo="$1" |