Skip to content

Instantly share code, notes, and snippets.

@MultiversalNomad
MultiversalNomad / ConsoleInGame.cs
Last active November 4, 2020 16:19 — forked from mminer/Console.cs
This fork splits Console.cs into ConsoleInGame.cs and ExampleSceneScript.cs. See code comments for details.
/*
This fork splits Console.cs into ConsoleInGame.cs and ExampleSceneScript.cs.
ConsoleInGame is a static class containing the main console code while ExampleSceneScript.cs
is an example for showing how to use the console in other scripts.
*/
using UnityEngine;
using System;
using System.Collections.Generic;
@MultiversalNomad
MultiversalNomad / JPANotationHTML.cs
Last active November 4, 2020 16:20
This function takes a Japanese kana word and outputs an HTML pitch accent notation. See code comments for details.
/*
This function takes a Japanese kana word and outputs an HTML pitch accent notation.
The notation is explained further in the code comments.
More info on Japanese pitch accent notation can be found at the following web pages:
- http://en.wikipedia.org/wiki/Japanese_pitch_accent
- http://japanese.stackexchange.com/questions/11194/how-does-pitch-accent-work-in-japanese
- http://www.sanseido-publ.co.jp/publ/dicts/daijirin_ac.html
*/
@MultiversalNomad
MultiversalNomad / compareHashes.ps1
Last active November 13, 2020 15:52
A helpful PowerShell script for quickly comparing 2 hashes to see if they match or not. See code comments for details.
<#
A helpful PowerShell script for quickly comparing 2 hashes to see if they match or not.
Requires Windows 10 at a minimum since it uses the built-in "certutil" tool to generate hashes.
The script takes 3 inputs: source, target, and hash type.
The "source" and "target" inputs can either be full filepaths for the files being hashed or they
can be actual hash strings (for example, both can be filepaths, or both can be hash strings, or
one can be a filepath with the other being a hash string).