Skip to content

Instantly share code, notes, and snippets.

View andybak's full-sized avatar

Andy Baker andybak

View GitHub Profile
// ==UserScript==
// @name Gitbook
// @match https://docs.openbrush.app/*
// @description Adds edit link to gitbook pages on https://docs.openbrush.app/
// @version 0.1
// @match https://www.tampermonkey.net/index.php?version=4.13.6136&ext=fire&updated=true
// @icon https://www.google.com/s2/favicons?domain=tampermonkey.net
// @grant none
// ==/UserScript==
local lume = require("lume")
Settings = {
description="Calls an API to choose a random Kenney model from poly.pizza",
previewType="quad"
}
function Start()
headers = {}
headers["x-auth-token"] = "---------"
using Unity.Collections;
using Unity.Mathematics;
using UnityEngine;
using UnityEngine.Rendering;
public class MeshAPIScript : MonoBehaviour
{
public Material m_material;
Mesh m_mesh;
{
"1. Those that belong to the Emperor":[
"Imperial Eagle",
"Dragon",
"Mandarin Duck"
],
"2. Embalmed ones":[
"Egyptian Mummy Cat",
"Embalmed Crocodile",
"Preserved Dodo"
import json
bl_info = {
"name": "Open Brush Connector",
"blender": (3, 4, 0),
"category": "System",
}
import bpy
import cgi
function path.fromSvg(svgPathString) end
function path.fromSvgMultiple(svgPathString) end
function path.transform(path, tr) end
function path.translate(path, translation) end
function path.rotate(path, rotation) end
function path.scale(path, scale) end
function draw.path(path) end
function draw.paths(paths) end
function draw.polygon(sides, radius, angle) end
function draw.text(text) end
import urllib.request
class ob:
class listenfor:
@staticmethod
def strokes(url):
urllib.request.urlopen(f"http://localhost:40074/api/v1?listenfor.strokes={url}")
class showfolder:
import os
import shutil
d = r"D:\Backups and Old Restores\Macbook Air\Last Backblaze backup of old Macbook Air\MacintoshHD\Users\andybaker\Documents\Unity Projects"
l = [os.path.join(d, s, "Library") for s in os.listdir(d)]
[shutil.rmtree(x) for x in l if os.path.isdir(x)]
{
"dependencies": {
"com.unity.ide.vscode": "1.2.5",
"com.unity.textmeshpro": "3.0.6",
"com.unity.timeline": "1.6.4",
"com.unity.ugui": "1.0.0",
"com.unity.modules.ai": "1.0.0",
"com.unity.modules.androidjni": "1.0.0",
"com.unity.modules.animation": "1.0.0",
"com.unity.modules.assetbundle": "1.0.0",
{
"User": {
"Author": "Full of Eyes"
},
"YouTube": {
"ChannelID": "UC3ojcJYTaWaGFiy-UqA8LrQ"
},
"Video": {
"Resolution": 1280,
"Offlineresolution": 1920,