Skip to content

Instantly share code, notes, and snippets.

Avatar

nekomimi-daimao nekomimi-daimao

View GitHub Profile
View ExtensionsWebRTC.cs
using System;
using UniRx;
using Unity.WebRTC;
using UnityEngine;
// ReSharper disable InconsistentNaming
namespace WebRTC.Extension
{
/// <summary>
@nekomimi-daimao
nekomimi-daimao / ShellExecutor.cs
Last active July 2, 2022 20:16
Execute shell from UnityEditor
View ShellExecutor.cs
#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
View github-pages.yml
name: github pages
on:
push:
branches: [ main ]
workflow_dispatch:
jobs:
build:
@nekomimi-daimao
nekomimi-daimao / ShellUtil.cs
Created December 29, 2021 17:26
execute shell from c#
View ShellUtil.cs
using System.Diagnostics;
using System.Text;
namespace Nekomimi.Daimao
{
public static class ShellUtil
{
public static int TimeoutMinutes = 30;
public static async Task<ShellResult> Do(string command, string args, CancellationToken baseToken)
@nekomimi-daimao
nekomimi-daimao / MusicalScale.cs
Last active November 17, 2021 17:12
unity, create musical scale AudioClip
View MusicalScale.cs
using System;
using System.Collections.Generic;
using System.Linq;
using UnityEngine;
namespace Nekomimi.Daimao
{
public static class MusicalScale
{
[Flags]
@nekomimi-daimao
nekomimi-daimao / MiniCommandLine.cs
Last active October 5, 2021 14:19
minimum Command Line Parser
View MiniCommandLine.cs
using System.Collections.Generic;
namespace Nekomimi.Daimao
{
/// <summary>
/// parsing comannd line into a dictionary.
/// </summary>
public static class MiniCommandLine
{
/// <summary>
@nekomimi-daimao
nekomimi-daimao / LogWriter.cs
Last active August 24, 2021 18:02
Unity, write logfile
View LogWriter.cs
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.IO;
using System.Text;
using System.Threading;
using Cysharp.Threading.Tasks;
using UnityEngine;
namespace Nekomimi.Daimao
@nekomimi-daimao
nekomimi-daimao / PhotonTransformShare.cs
Last active July 27, 2021 17:05
位置共有自作試作
View PhotonTransformShare.cs
using System;
using System.Threading;
using Cysharp.Threading.Tasks;
using Photon.Pun;
using UnityEngine;
namespace Nekomimi.Daimao.Photon
{
public class PhotonTransformShare : MonoBehaviour, IPunObservable
{
View EasyHttpRPC.cs
/*
* The MIT License (MIT)
*
* Copyright (c) 2021-2022 NekomimiDaimao
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
View Logger.cs
using System;
using UnityEngine;
public static class L
{
private const string DefineConditional = "NEVER_DEFINED_SYMBOL";
#region LogLevel
public enum LogLevel : byte