Skip to content

Instantly share code, notes, and snippets.

View pinhead-tf2's full-sized avatar
💣
Couldn't ya see the bloody bombs?!

pinhead pinhead-tf2

💣
Couldn't ya see the bloody bombs?!
View GitHub Profile
@pinhead-tf2
pinhead-tf2 / 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(),
@pinhead-tf2
pinhead-tf2 / 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

@pinhead-tf2
pinhead-tf2 / 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";