Skip to content

Instantly share code, notes, and snippets.

Joseph Cassano MultiversalNomad

View GitHub Profile
@MultiversalNomad
MultiversalNomad / JPANotationHTML.cs
Last active Aug 29, 2015
This function takes a Japanese kana word and outputs an HTML pitch accent notation. The notation is explained in the code comments. More info on Japanese pitch accent notation can be found at the following: <http://en.wikipedia.org/wiki/Japanese_pitch_accent> <http://japanese.stackexchange.com/questions/11194/how-does-pitch-accent-work-in-japanese
View JPANotationHTML.cs
// This file contains the newest implementation. The other file is not needed to run this code.
using System;
using System.Collections.Generic;
public static class Program
{
public static void Main ()
{
Console.WriteLine(JPANotationHTML("ありがとう", 2));
@MultiversalNomad
MultiversalNomad / ConsoleInGame.cs
Last active Dec 26, 2015 — forked from mminer/Console.cs
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.
View ConsoleInGame.cs
using UnityEngine;
using System;
using System.Collections.Generic;
/// <summary>
/// A console that displays the contents of Unity's debug log.
/// </summary>
/// <remarks>
/// Developed by Matthew Miner (www.matthewminer.com)
/// Forked by Joseph Cassano (jplc.ca) from Console to ConsoleInGame so the console can work from other scripts.
You can’t perform that action at this time.