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
using System.Collections.Generic; | |
using Unity.Mathematics; | |
using Unity.VectorGraphics; | |
using UnityEngine; | |
using UnityEngine.Splines; | |
public class SplineTest : MonoBehaviour | |
{ | |
public string svgPath; | |
[Multiline(16)] |
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
// ==UserScript== | |
// @name Gitbook | |
// @match https://docs.openblocks.app/* | |
// @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== |
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
# scan all subdirectories and count how many of each file type exists | |
import json | |
import os | |
import collections | |
from pprint import pprint | |
import matplotlib.pyplot as plt | |
def scan_files(root): | |
dirs_total = 0 |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using Polyhydra.Core; | |
using Sylves; | |
using UnityEngine; | |
using UnityEngine.UIElements; | |
using MeshTopology = Sylves.MeshTopology; | |
[ExecuteInEditMode] |
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 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"] = "---------" |
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
using Unity.Collections; | |
using Unity.Mathematics; | |
using UnityEngine; | |
using UnityEngine.Rendering; | |
public class MeshAPIScript : MonoBehaviour | |
{ | |
public Material m_material; | |
Mesh m_mesh; |
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
{ | |
"1. Those that belong to the Emperor":[ | |
"Imperial Eagle", | |
"Dragon", | |
"Mandarin Duck" | |
], | |
"2. Embalmed ones":[ | |
"Egyptian Mummy Cat", | |
"Embalmed Crocodile", | |
"Preserved Dodo" |
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 json | |
bl_info = { | |
"name": "Open Brush Connector", | |
"blender": (3, 4, 0), | |
"category": "System", | |
} | |
import bpy | |
import cgi |
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
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 |
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 urllib.request | |
class ob: | |
class listenfor: | |
@staticmethod | |
def strokes(url): | |
urllib.request.urlopen(f"http://localhost:40074/api/v1?listenfor.strokes={url}") | |
class showfolder: |