Skip to content

Instantly share code, notes, and snippets.

View gatosyocora's full-sized avatar

gatosyocora gatosyocora

View GitHub Profile
@gatosyocora
gatosyocora / 81-C# EditorWindow Script-NewEditorWindowScript.cs.txt
Last active May 26, 2020 08:54
UnityでCreateから作成できるEditorWindow用のC#テンプレートコード
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEditor;
using System.Linq;
namespace #SCRIPTNAME#
{
public class #SCRIPTNAME# : EditorWindow
{
@gatosyocora
gatosyocora / NPCDressChanger.cs
Last active July 14, 2020 22:10
VRChatでインスタンス作成時にActiveにするオブジェクト(本スクリプトでは服装)をランダムで決定するUdonSharpスクリプト(確率と時間指定に対応)
using System;
using UdonSharp;
using UnityEngine;
using UnityEngine.UI;
using VRC.SDKBase;
using VRC.Udon;
using VRC.Udon.Common.Interfaces;
public class NPCDressChanger : UdonSharpBehaviour
{
@gatosyocora
gatosyocora / text_counter.ps1
Last active July 19, 2020 12:41
pdfをtxtしたレポートの文字数を数えるPowerShellスクリプト
#[使い方]
# 1. ショートカットを作成する。リンク先は以下のような感じにする
# [powershell.exeの絶対パス] -ExecutionPolicy RemoteSigned -File [text_counter.ps1(このファイル)の絶対パス]
# 2. 採点するpdfファイルをAdobeAcrobatReaderDCの"ファイル(F)>テキストとして保存"でutf-8のtxtファイルに変換する
# 3. 1で作ったショートカットに2で作ったtxtファイルをD&Dする
#自動文字数検索では小節以下のタイトルも文字数に含めている
#図タイトルは文字数に含めないようにしている
#英数列は1文字ずつに分けて文字数として計算している(count = 5文字、0.1km = 5文字)