Skip to content

Instantly share code, notes, and snippets.

View nekomimi-daimao's full-sized avatar

nekomimi-daimao nekomimi-daimao

View GitHub Profile
/*
* The MIT License (MIT)
*
* Copyright (c) 2021 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
@nekomimi-daimao
nekomimi-daimao / PhotonTransformShare.cs
Last active July 27, 2021 17:05
位置共有自作試作
using System;
using System.Threading;
using Cysharp.Threading.Tasks;
using Photon.Pun;
using UnityEngine;
namespace Nekomimi.Daimao.Photon
{
public class PhotonTransformShare : MonoBehaviour, IPunObservable
{
@nekomimi-daimao
nekomimi-daimao / MiniCommandLine.cs
Last active October 5, 2021 14:19
minimum Command Line Parser
using System.Collections.Generic;
namespace Nekomimi.Daimao
{
/// <summary>
/// parsing comannd line into a dictionary.
/// </summary>
public static class MiniCommandLine
{
/// <summary>
@nekomimi-daimao
nekomimi-daimao / MusicalScale.cs
Last active November 17, 2021 17:12
unity, create musical scale AudioClip
using System;
using System.Collections.Generic;
using System.Linq;
using UnityEngine;
namespace Nekomimi.Daimao
{
public static class MusicalScale
{
[Flags]
@nekomimi-daimao
nekomimi-daimao / TextFileWriter.cs
Last active December 8, 2021 03:03
Unity, write text file.
using System;
using System.IO;
using System.Text;
namespace NekomimiDaimao
{
/// https://gist.github.com/nekomimi-daimao/ee205e6d3949aa672913474107f542d1
public class TextFileWriter : IDisposable
{
private readonly StreamWriter _streamWriter;
@nekomimi-daimao
nekomimi-daimao / ShellUtil.cs
Created December 29, 2021 17:26
execute shell from c#
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)
using System;
using UniRx;
using Unity.WebRTC;
using UnityEngine;
// ReSharper disable InconsistentNaming
namespace WebRTC.Extension
{
/// <summary>
@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:
/*
* 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
#!/bin/sh
# shellcheck disable=SC2086
# nekomimi-daimao
# *MIT* https://opensource.org/licenses/mit-license.php
# https://gist.github.com/nekomimi-daimao/9e4a8ff0e68818574f971a7ff86a536a
# create license file
# docker run --rm -v license:/license -w /license unityci/editor:ubuntu-2019.4.24f1-android-0.12.0 /opt/unity/Editor/Unity -quit -batchmode -nographics -logFile -createManualActivationFile