Skip to content

Instantly share code, notes, and snippets.

View liaokongVFX's full-sized avatar
🎯
调焦

了空 liaokongVFX

🎯
调焦
View GitHub Profile
@liaokongVFX
liaokongVFX / cacheExport.py
Created December 20, 2017 06:33 — forked from anshultiwari1/cacheExport.py
yeti cache export script for maya
#!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
import sys, pprint
from pysideuic import compileUi
pyfile = open("/nas/projects/development/pipeline/bs_pipeline/cacheExportUI.py", 'w')
compileUi("/nas/projects/development/pipeline/bs_pipeline/ui/cacheExport.ui", pyfile, False, 4, False)
pyfile.close()
'''
<?php
/**
* Catch php output buffering data over jQuery AJAX
*
* @author: Sohel Rana (me.sohelrana@gmail.com)
* @author url: https://blog.sohelrana.me
* @link: https://blog.sohelrana.me/catch-php-output-buffering-data-jquery-ajax/
* @licence MIT
*/
@liaokongVFX
liaokongVFX / exception_gpt.py
Last active August 9, 2023 13:56
一个使用GPT帮助分析报错的装饰器
import inspect
import traceback
from functools import wraps
import openai
openai.api_base = ''
openai.api_key = ''
allow_class_methods = ['__init__']
@liaokongVFX
liaokongVFX / document_bot.py
Last active December 23, 2023 05:21
基于 openai assistant api 实现的文档问答助手
import time
import openai
import streamlit as st
assistant_id = 'asst_XNwQHWKtsPojN9x29UK4wbrX'
client = openai.OpenAI()
# 创建 assistant 执行线程
thread = openai.beta.threads.create()