Skip to content

Instantly share code, notes, and snippets.

View SuddenDevelopment's full-sized avatar
🤖

SuddenDevelopment SuddenDevelopment

🤖
View GitHub Profile
import unreal # type: ignore
import os
import json
import datetime
def get_desktop():
try:
import winreg
with winreg.OpenKey(winreg.HKEY_CURRENT_USER, r"Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders") as key:
return winreg.QueryValueEx(key, "Desktop")[0]
"""
in sites_in v
in verts_in v
in faces_in s
out verts_out v
out faces_out s
"""
import numpy as np
from collections import defaultdict
@tin2tin
tin2tin / basic_ui_documented.py
Last active April 10, 2024 03:38 — forked from AzureDVBB/basic_ui_documented.py
A commented template for making simple UI in blender using the bpy python API
#import the bpy module to access blender API
import bpy
#WARNING: this is written and tested for blender 2.79
#blender 2.8 and newer will likely have a different python API
#create a property group, this is REALLY needed so that operators
#AND the UI can access, display and expose it to the user to change
#in here we will have all properties(variables) that is neccessary
class CustomPropertyGroup(bpy.types.PropertyGroup):
@Dodotree
Dodotree / bestFitAngle.py
Created May 15, 2018 23:50
Blender3D script to find best fit box angle
import bpy, bmesh
from mathutils.geometry import box_fit_2d
'''
After rotation bounding box will have minimum volume
'''
def changeToBestFitAngle(id):
obj = selectAndActivate(id)
bpy.ops.object.mode_set(mode='EDIT')
@dmnsgn
dmnsgn / WebGL-WebGPU-frameworks-libraries.md
Last active May 19, 2024 03:58
A collection of WebGL and WebGPU frameworks and libraries

A non-exhaustive list of WebGL and WebGPU frameworks and libraries. It is mostly for learning purposes as some of the libraries listed are wip/outdated/not maintained anymore.

Engines and libraries ⚙️

Name Stars Last Commit Description
three.js ![GitHub
# ##### BEGIN GPL LICENSE BLOCK #####
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// Restify Server CheatSheet.
// More about the API: http://mcavage.me/node-restify/#server-api
// Install restify with npm install restify
// 1.1. Creating a Server.
// http://mcavage.me/node-restify/#Creating-a-Server
var restify = require('restify');
@anshula
anshula / phoronix-cmd.md
Last active March 22, 2024 21:43
Phoronix Test Suite Cheat Sheet