Skip to content

Instantly share code, notes, and snippets.

View jonntd's full-sized avatar
💢
Out sick

jonn jonntd

💢
Out sick
View GitHub Profile
@Sylphy-0xd3ac
Sylphy-0xd3ac / ClawdOne.py
Last active January 30, 2026 11:28
ClawdOne, 配置Environ见下图.
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""onebot.py
OneBot v11 ↔ Clawdbot Gateway bridge + OpenAI-compatible HTTP endpoint.
What it does
- Connects to OneBot v11 forward WebSocket (NapCat / go-cqhttp / LLOneBot etc.)
- For incoming QQ messages (group/private), forwards content to Clawdbot Gateway
@jonntd
jonntd / pyside_gradient.py
Created November 5, 2024 06:59 — forked from petfactory/pyside_gradient.py
Using a maya gradient control with PySide
from PySide import QtCore, QtGui
from shiboken import wrapInstance
import maya.OpenMayaUI as omui
from functools import partial
import pymel.core as pm
def maya_main_window():
main_window_ptr = omui.MQtUtil.mainWindow()
return wrapInstance(long(main_window_ptr), QtGui.QWidget)
@noobnooc
noobnooc / cloudflare-worker-proxy.js
Last active January 10, 2026 07:48
cloudflare-worker-proxy
// Website you intended to retrieve for users.
const upstream = 'api.openai.com'
// Custom pathname for the upstream website.
const upstream_path = '/'
// Website you intended to retrieve for users using mobile devices.
const upstream_mobile = upstream
// Countries and regions where you wish to suspend your service.
@jonntd
jonntd / typemap
Created June 23, 2022 08:06 — forked from trentpolack/typemap
Perforce Typemap (UE4-focused)
# Perforce File Type Mapping Specifications.
#
# TypeMap: a list of filetype mappings; one per line.
# Each line has two elements:
#
# Filetype: The filetype to use on 'p4 add'.
#
# Path: File pattern which will use this filetype.
#
# See 'p4 help typemap' for more information.
import unreal
# シーケンサーを取得
LevelSequence = unreal.find_asset('/Game/Sequence/testSeq')
# Camera Cuts等以外のトラックはbindingsと呼ばれる
bindings = LevelSequence.get_bindings()
for b in bindings:
if b.get_display_name() == 'CubeTest':
@jbltx
jbltx / UnityWindow.cpp
Last active August 8, 2024 08:22
Unity Window in Qt
#include "UnityWindow.h"
#include <QApplication>
#include <QResizeEvent>
#include <QShowEvent>
#include <QHideEvent>
#include <QFocusEvent>
#include <QMouseEvent>
#include <QFileInfo>
#include <QProcess>
@chris-lesage
chris-lesage / calculate_pole_vector.py
Last active June 13, 2025 09:23
Autodesk Maya script to calculate pole vector position based on 3 input objects
import pymel.core as pm
'''
An Autodesk Maya PyMEL script that calculates a pole vector position
based on 3 input PyNode objects. example: leg, knee, ankle bones.
Chris Lesage chris@rigmarolestudio.com
'''
def calculate_pole_vector(p1, p2, p3, poleDistance=1):
"""
@chris-lesage
chris-lesage / eye_rigger.py
Created February 17, 2020 20:34
Alternative eye_rigger for mGear. I eventually want to submit this as a PR.
"""Rigbits eye rigger tool"""
"""
This is an alternative eye_rigger for mGear 3.2
I eventually want to submit this as a PR, but I haven't fully tested it yet.
It adds march_vertex() which helps discover the upper and lower edgeloops in the eye.
This can help fix issues on the right side of the rig, where the eye can take weird shapes.
It can also make the eye rig more stable on characters where the eye is at a tilted angle.
Chris Lesage February 2020
@jonntd
jonntd / unsmoothMesh.py
Created December 4, 2019 06:32 — forked from kanishk2391/unsmoothMesh.py
Reconstruct Subdiv for Maya
#---------Reconstruct Subdiv Script for Maya----------
#Script by - Kanishk Chouhan
#Email - kanishk2391@gmail.com
#Blog - www.pixel-architect.blogspot.com
#Description -
#This script allows u to reverse the result of smooth operation in maya after deleting the history
#It also preserves the original UV of the mesh
#Select the mesh u want to unsmooth and execute the script
#Script might take some time to execute depending on the polycount...
@Meatplowz
Meatplowz / maya_external_client.py
Last active June 1, 2024 04:08
Maya Threaded Server example with Client
"""
External Maya Client
This can be run outside of Maya
Use in idle or an IDE that can accept input.
"""
import socket
import logging