Skip to content

Instantly share code, notes, and snippets.

View Yuu6883's full-sized avatar
💻
waiting for AI bubble burst

Yuu Yuu6883

💻
waiting for AI bubble burst
View GitHub Profile
@Yuu6883
Yuu6883 / Exporter.cs
Created February 14, 2026 00:12
AnimeStudio patch for GLB export instead of OBJ
public static bool ExportMesh(AssetItem item, string exportPath)
{
const int GL_ARRAY_BUFFER = 34962;
const int GL_ELEMENT_ARRAY_BUFFER = 34963;
const int GL_FLOAT = 5126;
const int GL_UNSIGNED_INT = 5125;
var m_Mesh = (Mesh)item.Asset;
if (m_Mesh.m_VertexCount <= 0)
#include <iostream>
#include <random>
#include <vector>
#include <chrono>
#include <functional>
#include <algorithm>
#include <cassert>
using namespace std;
using namespace chrono;
@Yuu6883
Yuu6883 / git_traffic.py
Last active October 4, 2021 00:08
Usage: python git_traffic.py --token TOKEN --repos TXT_FILE_WITH_REPO_NAMES
import re
import json
import datetime
import argparse
import requests
def log(msg):
print(f"[{datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S')}] {msg}")
def get_traffic(repo, auth, all):