Skip to content

Instantly share code, notes, and snippets.

@AsherVo
AsherVo / chat.py
Created July 5, 2023 21:33
Python script for chatting with ChatGPT. Modify the arguments for it to actually be useful.
import os
import openai
import asyncio
import time
import sys
import argparse
import tiktoken
import datetime
import re
import json
@AsherVo
AsherVo / RequireReferenceAlert.cs
Last active October 26, 2020 04:03
Using unity's standard ObjectField in RequireReferenceDrawer to fix bugs and improve prefab workflow.
// PLEASE NOTE: This will add ~1sec to your save time
// If that is unacceptable (which it was to me), then you can change all the
// references to "MonoBehaviour" in this file to your own custom behaviour type
// that this script will search through each time you save
using UnityEditor;
using UnityEngine;
using System.Linq;
using System.Reflection;
using System.Collections;