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
# Enable third-party repositories | |
rpm-ostree install \ | |
https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm \ | |
https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm | |
systemctl reboot | |
# Apply third-party repositories | |
rpm-ostree update \ | |
--uninstall rpmfusion-free-release \ | |
--uninstall rpmfusion-nonfree-release \ |
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
import React from "react"; | |
import useCanvas from "./useCanvas"; | |
import { useWindowSize } from "@uidotdev/usehooks"; | |
const App = () => { | |
const { width, height } = useWindowSize(); | |
const canvasRef = useCanvas( | |
(ctx, frame) => { | |
ctx.fillRect(100, 100 + frame, 100, 100); | |
}, |