Skip to content

Instantly share code, notes, and snippets.

View nekomimi-daimao's full-sized avatar

nekomimi-daimao nekomimi-daimao

View GitHub Profile
@nekomimi-daimao
nekomimi-daimao / docker-compose.yml
Last active October 11, 2024 00:15
unity accelerator docker compose
volumes:
accelerator-volume:
driver: "local"
services:
accelerator:
image: unitytechnologies/accelerator
volumes:
- accelerator-volume:/agent
environment:
@nekomimi-daimao
nekomimi-daimao / CollectDependencies.cs
Created July 17, 2024 15:21
collect dependencies in project
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using UnityEditor;
using UnityEngine;
namespace Nekomimi.Daimao.Editor
{
public static class CollectDependencies
@nekomimi-daimao
nekomimi-daimao / server.ts
Created March 7, 2024 14:48
deno local server
// deno run --allow-net --allow-read=. server.ts
import { serveDir } from "https://deno.land/[email protected]/http/file_server.ts";
Deno.serve((req) => {return serveDir(req);});
@nekomimi-daimao
nekomimi-daimao / ButtonExtended.cs
Last active April 22, 2024 15:10
ButtonExtended
// https://gist.github.com/nekomimi-daimao/7b29fbb6f5bda1bf71791412f35fa7ea
using System;
using UniRx;
using UnityEngine;
using UnityEngine.EventSystems;
namespace Nekomimi.Daimao
{
[RequireComponent(typeof(CanvasGroup))]
@nekomimi-daimao
nekomimi-daimao / SerializableTable.cs
Created February 9, 2024 11:09
UnityのInspectorでDictionary的に使う
using System;
using System.Collections.Generic;
using System.Linq;
namespace Nekomimi.Daimao
{
[Serializable]
public class SerializableTable<TKey, TValue>
{
public SerializableKeyValue<TKey, TValue>[] table;
using System;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Channels;
using System.Threading.Tasks;
using Cysharp.Threading.Tasks;
using UniRx;
using UnityEngine;
using UnityEngine.Networking;
using Channel = System.Threading.Channels.Channel;
@nekomimi-daimao
nekomimi-daimao / HumanPoseAccessor.cs
Created September 27, 2023 14:58
HumanPoseSerializable
using UnityEngine;
namespace SerializeAnimation.PoseAccessor
{
public sealed class HumanPoseAccessor : MonoBehaviour
{
[SerializeField]
private Animator animator;
private HumanPoseHandler _humanPoseHandler;
# https://github.com/micnncim/action-label-syncer
# https://keepachangelog.com/en/1.1.0/
- name: added
description: Added for new features.
color: 66FF66
- name: changed
description: Changed for changes in existing functionality.
color: 33FFFF
- name: deprecated
description: Deprecated for soon-to-be removed features.
@nekomimi-daimao
nekomimi-daimao / indenter.sh
Last active May 16, 2023 16:04
行頭下げ.UTF-8/LFにのみ対応.ファイルの末尾に改行必須。
#!/bin/bash
array=(" " "「" "『")
formatted=""
while read -r line; do
if [ -n "$line" ] && [[ ! " ${array[*]} " =~ " "${line::1}" " ]]; then
formatted+=" "
fi
using System;
using UniRx;
using Unity.WebRTC;
using UnityEngine;
// ReSharper disable InconsistentNaming
namespace WebRTC.Extension
{
/// <summary>