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 / 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/std@0.210.0/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>
@nekomimi-daimao
nekomimi-daimao / ShellExecutor.cs
Last active May 16, 2023 09:10
Execute shell from UnityEditor
#if UNITY_EDITOR
using System;
using System.Diagnostics;
using System.IO;
using System.Text;
using UnityEditor;
using UnityEngine;
// ReSharper disable MergeIntoNegatedPattern
@nekomimi-daimao
nekomimi-daimao / github-pages.yml
Last active October 16, 2022 16:05
deploy flutter web for github pages
name: github pages
on:
push:
branches: [ main ]
workflow_dispatch:
jobs:
build: