Skip to content

Instantly share code, notes, and snippets.

View pinheadtf2's full-sized avatar
☠️
The formidable skeleton approaches

pinhead pinheadtf2

☠️
The formidable skeleton approaches
View GitHub Profile
@pinheadtf2
pinheadtf2 / pip_loading_bar.py
Created December 7, 2023 07:03
I figured out a nice way to get the loading bar from the pip installer's rich package
import asyncio
from pip._vendor.rich.progress import Progress, TextColumn, SpinnerColumn, TimeElapsedColumn, BarColumn, TaskProgressColumn, TimeRemainingColumn
async def loading_bar():
some_dataset = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20]
progress = Progress(
SpinnerColumn(),
TimeElapsedColumn(),
@pinheadtf2
pinheadtf2 / backlog.md
Last active September 6, 2022 01:32
pinhead's game backlog

✅ - 100% Completion
🟢 - Completed
▶️ - Currently Playing
💤 - Started, on hold
❌ - Not started
🔴 - Not Purchased

Desktop

Favorites

@pinheadtf2
pinheadtf2 / SaveMeshInEditor.cs
Created July 30, 2022 18:58
Unity Editor Mesh Saver
#if UNITY_EDITOR
using UnityEngine;
using UnityEditor;
using System.Collections;
// Usage: Attach to an object, assign target gameobject (from where the mesh is taken), Run, Press savekey
public class SaveMeshInEditor : MonoBehaviour
{
public string saveName = "SavedMesh";