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
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 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" |
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
| // 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; |
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
| #!/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: |
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
| using System.Collections.Generic; | |
| using UnityEngine; | |
| public class GpuInstancingStressTest : MonoBehaviour | |
| { | |
| [SerializeField] | |
| private Mesh _mesh; | |
| [SerializeField] | |
| private Material _material; |
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
| 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]; |
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
| public static class RosettaUiToolkitExtension | |
| { | |
| private static readonly List<Action> _afterBuildActions = new(); | |
| public static void Clear() | |
| { | |
| _afterBuildActions.Clear(); | |
| } | |
| public static void Apply() | |
| { |
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
| 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) |
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 oscP5.*; | |
| import netP5.*; | |
| OscP5 oscP5; | |
| void setup() { | |
| size(400, 400); | |
| frameRate(25); | |
| int port = 7474; |
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
| 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 |
NewerOlder