Skip to content

Instantly share code, notes, and snippets.

<script lang="ts">
let gyro = new Gyroscope({ frequency: 60 });
let x = 0,
y = 0,
z = 0;
gyro.addEventListener("reading", () => {
x += gyro.x;
@LeopoldLabs
LeopoldLabs / Dockerfile
Last active October 6, 2024 12:03
Sveltekit Dockerfile
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
@LeopoldLabs
LeopoldLabs / clone.sh
Last active April 25, 2025 13:44
bash git clone command shortcut
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"