Skip to content

Instantly share code, notes, and snippets.

View supertask's full-sized avatar
🏖️
Chilling

Tasuku TAKAHASHI supertask

🏖️
Chilling
View GitHub Profile
@supertask
supertask / modal_unsloth_Qwen3VL_8B_deplay.py
Last active December 31, 2025 05:20
Deplay file for unsloth Qwen3-VL 8B on Modal
import modal
import os
import io
# Safetensorsモデル (Transformers) を使用するための設定
MODEL_NAME = "unsloth/Qwen3-VL-8B-Instruct"
# モデルキャッシュ用のVolume
VOLUME_NAME = "qwen3-models-safetensors"
MODEL_CACHE_DIR = "/vol/models"
@supertask
supertask / ui-tars-windows-instrudctions.md
Last active December 21, 2025 08:13
UI-TARS Windows Instructions

UI-TARS Setup Guide

Conda setting

wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
bash Miniconda3-latest-Linux-x86_64.sh -b
~/miniconda3/bin/conda init
source ~/.bashrc
rm Miniconda3-latest-Linux-x86_64.sh
@supertask
supertask / HierarchyWebServer.cs
Last active December 9, 2025 07:15
Unity Hierarchy Web Server
// Assets/Editor/HierarchyWebServer.cs
#if UNITY_EDITOR
using System;
using System.Net;
using System.Text;
using System.Threading;
using System.Collections.Generic;
using UnityEditor;
using UnityEngine;
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
End-to-end utility for Groq Whisper:
1) Silence-based split (ffmpeg silencedetect)
2) Re-merge adjacent parts under size limit (default 25 MB)
3) Transcribe each merged audio via Groq Whisper Large v3
4) Save per-chunk TXT/JSON and merge into a single TXT
Defaults tuned for your workflow:
@supertask
supertask / GpuInstancingStressTest.cs
Created January 10, 2025 10:39
GpuInstancingStressTest
using System.Collections.Generic;
using UnityEngine;
public class GpuInstancingStressTest : MonoBehaviour
{
[SerializeField]
private Mesh _mesh;
[SerializeField]
private Material _material;
@supertask
supertask / Illustrator_points_getter.js
Created September 19, 2024 10:01
Get selected position in pixel on Illustrator
var file = new File("~/Desktop/points.tsv"); // 出力先を指定
file.open("w");
var offsetX = 0;
var offsetY = -4271;
var doc = app.activeDocument;
var selection = doc.selection;
for (var i = selection.length - 1; i >= 0; i--) {
var item = selection[i];
public static class RosettaUiToolkitExtension
{
private static readonly List<Action> _afterBuildActions = new();
public static void Clear()
{
_afterBuildActions.Clear();
}
public static void Apply()
{
@supertask
supertask / Texture2DPNGExporter.cs
Created November 10, 2023 18:46
Texture2DPNGExporter for MetaTex
using UnityEngine;
using UnityEditor;
using System.IO;
public class Texture2DPNGExporter : MonoBehaviour
{
[MenuItem("Assets/Export Selected Textures to PNG")]
public static void SaveTexturesToPNG()
{
foreach (Object selectedObject in Selection.objects)
@supertask
supertask / OSCReceiver.pde
Created October 30, 2023 08:19
OSC Receiver by Processing
import oscP5.*;
import netP5.*;
OscP5 oscP5;
void setup() {
size(400, 400);
frameRate(25);
int port = 7474;
@supertask
supertask / ShowFloatInShader.hlsl
Created July 5, 2023 17:27
ShowFloatInShader
float3 ShowFloat(float2 uv, float val, int digits){
int a[210] =
{
1, 1, 1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0,0,0,1,1,1, 0,0,0,0,0,0,
1, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 1, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 1, 1, 0, 1, 1, 0, 1, 0,0,0,1,0,0, 0,1,0,0,0,0,
1, 0, 1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 0,0,0,1,1,1, 1,1,1,1,1,1,
1, 0, 1, 0, 0, 1, 1, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 1, 1, 0, 1, 0, 0, 1, 1, 0, 1, 0, 0, 1, 0,0,0,1,0,0, 0,1,0,0,0,0,
1, 1, 1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1,0,0,1,1,1, 0,0,0,0,0,0