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 http.server import SimpleHTTPRequestHandler, ThreadingHTTPServer | |
| from pathlib import Path | |
| import re | |
| import random | |
| import sys | |
| import threading | |
| import time | |
| ROOT = Path(__file__).parent.resolve() |
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
| -- I use this for school on my work laptop which means no WSL and I must put up with PS :( | |
| vim.api.nvim_create_user_command("Preview", function() | |
| vim.cmd([[!powershell -Command "$d = Split-Path '%:p'; $f = Get-ChildItem $d -Filter *.html | Select-Object -First 1; if ($f) { start chrome $f.FullName } else { Write-Host 'No HTML file found' }"]]) | |
| end, {}) | |
| vim.cmd("colorscheme sorbet") | |
| vim.opt.tabstop = 2 | |
| vim.opt.shiftwidth = 2 | |
| vim.opt.expandtab = false |
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
| local Players = game:GetService("Players") | |
| local RunService = game:GetService("RunService") | |
| local client = Players.LocalPlayer | |
| local camera = workspace.CurrentCamera | |
| local frame_size = UDim2.fromScale(0.025, 0.025) | |
| local screen_gui = Instance.new("ScreenGui") |
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
| { | |
| "name": "project", | |
| "globIgnorePaths": ["**/package.json", "**/tsconfig.json"], | |
| "emitLegacyScripts": false, | |
| "tree": { | |
| "$className": "DataModel", | |
| "ServerScriptService": { | |
| "$className": "ServerScriptService", | |
| "server": { | |
| "$path": "out/server" |
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, { createRef, Element, useEffect, useState } from "@rbxts/react"; | |
| import { usePx } from "../hooks/use-px"; | |
| import { Empty } from "./empty"; | |
| import { Typeography } from "./typeography"; | |
| import { Widget } from "./widget"; | |
| function extractDigits(value: number) { | |
| return tostring(value) | |
| .split("") | |
| .map((digit) => tonumber(digit)!); |
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
| -- When I was first looking at the APIs I refered to the devforum posts lmao | |
| -- https://devforum.roblox.com/t/studio-beta-major-updates-to-in-experience-mesh-image-apis/3225681 | |
| -- https://devforum.roblox.com/t/client-beta-in-experience-mesh-image-apis-now-available-in-published-experiences/3267293 | |
| local AssetService = game:GetService("AssetService") | |
| -- Creating a simple triangle | |
| local editableMesh = AssetService:CreateEditableMesh() | |
| local v1 = editableMesh:AddVertex(Vector3.new(0, 1, 0)) | |
| local v2 = editableMesh:AddVertex(Vector3.new(1, 0, 0)) |