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 chromadb | |
| import openai | |
| import os | |
| from tqdm import tqdm | |
| import tiktoken | |
| from chromadb.errors import NotEnoughElementsException | |
| import re | |
| from colorama import Fore, Style | |
| # Instructions (assumes Windows OS) |
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 | |
| import spacy | |
| import zipfile | |
| import os | |
| import pickle | |
| # File paths | |
| zip_path = r"pathtotwitterarchive.zip" # Path to zipped twitter archive | |
| extract_path = r"somepath\twitter_data" # Path to extract twitter data | |
| embeddings_path = r"somepath\tweet_embeddings.pkl" # Path to save embeddings |
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
| class_name SignalWaiter | |
| signal AllFinished | |
| # Internal variables | |
| var _active_nodes = {} | |
| var _signal_connections = {} | |
| var _callables = [] | |
| ## External method to add a node, its callable, and the signal to listen for. |
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
| ''' | |
| Based on https://shaggydev.com/2025/06/12/godot-awaiting-signals/ | |
| # usage | |
| var sigs=[ | |
| get_tree().create_timer(0.1).timeout, | |
| get_tree().create_timer(0.1).timeout, | |
| get_tree().create_timer(0.1).timeout, | |
| ] |
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
| @tool | |
| extends EditorScript | |
| ## Auto-generate collision polygons from tile pixel alpha. | |
| ## Run from Script Editor: File > Run (Ctrl+Shift+X) | |
| ## Path to the TileSet resource to process. | |
| const TILESET_PATH := "res://game_specific/resources/tilesets/greentileset.tres" | |
| ## Physics layer index to assign collision polygons to. |
OlderNewer