Skip to content

Instantly share code, notes, and snippets.

@justdmitry
justdmitry / DeclensionGenerator
Created March 15, 2024 08:23 — forked from KANekT/DeclensionGenerator
Склонение числительных в C#
public class DeclensionGenerator
{
/// <summary>
/// Возвращает слова в падеже, зависимом от заданного числа
/// </summary>
/// <param name="number">Число от которого зависит выбранное слово</param>
/// <param name="nominativ">Именительный падеж слова. Например "день"</param>
/// <param name="genetiv">Родительный падеж слова. Например "дня"</param>
/// <param name="plural">Множественное число слова. Например "дней"</param>
/// <returns></returns>
@justdmitry
justdmitry / EosioStringExtensions.cs
Created August 23, 2022 15:24
EOSIO NameToValue conversion in C#
namespace System.Text
{
public static class EosioStringExtensions
{
// based on https://gist.github.com/MrToph/2634b81999357f34ff26f4c03a00fe0e
public static string NameToValue(string name)
{
if (string.IsNullOrWhiteSpace(name))
{
throw new ArgumentNullException(nameof(name));
@justdmitry
justdmitry / doc.md
Last active November 26, 2022 20:50
Anti-Matrix

You work for matrixgroupve (or similiar) and receive money for "working" on this faucet? We have good news for you - you are underpaid and can earn approximately TWICE MORE (real rate for 10 July is about 1000 BAN = 10000 VES) with three easy steps (below).

1. Make your own ban_... account

  1. Use official wallets: Kalium for iOS and Android or browser-based vault.banano.cc. Install/open wallet of your choice, then create new account using instructions in wallet.
  2. Write down your SEED (string of 64 digits and letters) and/or your Secret phrase (15 words). Write it in safe place! If you lose your phone/computer - you can access your wallet on new device using Seed/Secret phrase. But if you lose your Seed and Secret phrase - you lose your money, forever.
  3. Never show your seed and Secret phrase to anybody. If somebody will know your seed or Secret phrase - he can stole your money from your wallet.
  4. Also, save your ban_... address - this is your
@justdmitry
justdmitry / BigDecimal.cs
Created April 9, 2019 16:09 — forked from nberardi/BigDecimal.cs
BigDecimal type in .NET
using System;
using System.Linq;
namespace System.Numerics
{
public struct BigDecimal : IConvertible, IFormattable, IComparable, IComparable<BigDecimal>, IEquatable<BigDecimal>
{
public static readonly BigDecimal MinusOne = new BigDecimal(BigInteger.MinusOne, 0);
public static readonly BigDecimal Zero = new BigDecimal(BigInteger.Zero, 0);
public static readonly BigDecimal One = new BigDecimal(BigInteger.One, 0);

Keybase proof

I hereby claim:

  • I am justdmitry on github.
  • I am just_dmitry (https://keybase.io/just_dmitry) on keybase.
  • I have a public key ASDprvyQIk13dQ4ogFoj8rbHcs_9_Cfkib6pQNUT_m8Z-wo

To claim this, I am signing this object: