Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View herrozerro's full-sized avatar
💻
Tap Tap Tap

Josiah Bradbury herrozerro

💻
Tap Tap Tap
View GitHub Profile
var Module = {
locateFile: function (s) {
return './lib/wasm-git/' + s;
}
};
importScripts('./lib/wasm-git/lg2.js');
Module.onRuntimeInitialized = () => {
const lg = Module;
public static int convertRomanNumeral(string numeral)
{
numeral = numeral.Replace("M", "DD");
numeral = numeral.Replace("CD", "CCCC");
numeral = numeral.Replace("D", "CCCCC");
numeral = numeral.Replace("C", "LL");
numeral = numeral.Replace("XL", "XXXX");
numeral = numeral.Replace("L", "XXXXX");
numeral = numeral.Replace("X", "VV");
numeral = numeral.Replace("IV", "IIII");