-
ファイルの変更はそのままで直前のコミットを取り消す(Windows)
$git reset --soft "HEAD^"
-
gitignoreの変更を適用(管理しなくなったファイルの履歴も残さない(push前))
$git rm -r --cached .
$git add .
$git commit --amend --no-edit
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#[使い方] | |
# 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文字) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using UdonSharp; | |
using UnityEngine; | |
using UnityEngine.UI; | |
using VRC.SDKBase; | |
using VRC.Udon; | |
using VRC.Udon.Common.Interfaces; | |
public class NPCDressChanger : UdonSharpBehaviour | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using UnityEditor; | |
using System.Linq; | |
namespace #SCRIPTNAME# | |
{ | |
public class #SCRIPTNAME# : EditorWindow | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Param( | |
[parameter(mandatory=$true)][String]$imageUrl | |
) | |
Add-Type -AssemblyName System.Drawing | |
$stream = [System.IO.FileStream]::new( | |
$imageUrl, | |
[System.IO.FileMode]::Open, | |
[System.IO.FileAccess]::ReadWrite) | |
$srcImage = [System.Drawing.Image]::FromStream($stream) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using UnityEditor; | |
[InitializeOnLoad] | |
public class VRCSDKChecker | |
{ | |
// 他のスクリプトでVRCSDKを使う部分に | |
// #if VRCSDK ~ #endif | |
// で囲うことでVRCSDKがないことによるコンパイルエラーを防げる |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using UnityEditor; | |
using System; | |
namespace GatoMaterialPropertyDrawer | |
{ | |
internal class LineDecorator : MaterialPropertyDrawer | |
{ | |
private float spaceSize; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using System.Linq; | |
#if UNITY_EDITOR | |
using UnityEditor; | |
#endif | |
public class ComponentProperties : MonoBehaviour { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections.Generic; | |
using UnityEditor.Animations; | |
using UnityEngine; | |
using System.Linq; | |
using System.Text; | |
using System; | |
// Copyright (c) 2019 gatosyocora | |
// MIT License |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using System.Windows.Forms; | |
using System.IO; | |
using YamlDotNet; | |
using YamlDotNet.RepresentationModel; | |
using System.Text.RegularExpressions; | |
// Copyright (c) 2019 gatosyocora |
NewerOlder