Skip to content

Instantly share code, notes, and snippets.

@diademoff
diademoff / test.txt
Last active April 9, 2023 22:21
test gist dont watch
test1
@diademoff
diademoff / RomanNumerals.cs
Created September 3, 2021 12:04
Convert to Roman number
using System;
using System.Collections.Generic;
using System.Linq;
public class RomanNumerals
{
struct NumberInfo
{
public int Value;
public int RangeBegin;
@diademoff
diademoff / HumanTimeFormat.cs
Created July 22, 2021 18:11
Convert seconds to human readable format
using System.Collections.Generic;
using System.Linq;
public class HumanTimeFormat
{
protected class DateComponent
{
// One unit of current component
public int InSeconds { get; }
// String present of current component
@diademoff
diademoff / ExpressionSolver.cs
Last active June 27, 2021 18:10
Класс для решения математического выражения C#.
// using System;
// using System.Collections.Generic;
// using System.Linq;
/// <summary>
/// Решить выражение.
/// `/` деление;
/// `+` сложение;
/// `-` вычитание;
/// `*` умножение;