Skip to content

Instantly share code, notes, and snippets.

View MrAliev's full-sized avatar
🏠
Working from home

Антон Алиев MrAliev

🏠
Working from home
View GitHub Profile
@MrAliev
MrAliev / GpsCalculator.cs
Last active October 31, 2022 02:41
Distance calculator by GPS coordinates
namespace Gps.Services
{
/// <summary>
/// GPS Location Calculator
/// </summary>
public interface IGpsCalculator
{
/// <summary>
/// Calculate distance between two GPS points in meters
@MrAliev
MrAliev / Program.cs
Last active September 11, 2022 23:00
ASP .Net SwaggerUI behind proxy-server with path route ( api.domain.com/SomeApi )
namespace SomeAPI
{
public class Program
{
public static void Main(string[] args)
{
var builder = WebApplication.CreateBuilder(args);
var settings = new AppSettings();
builder.Configuration.GetSection(nameof(AppSettings)).Bind(settings);
@MrAliev
MrAliev / App.xaml.cs
Last active June 10, 2021 11:37
Dynamic DirectoryModuleCatalog for PRISM App
/// <summary>
/// Interaction logic for App.xaml
/// </summary>
public partial class App
{
// ...
// ...
protected override IModuleCatalog CreateModuleCatalog()
{
@MrAliev
MrAliev / Generic.xaml
Last active May 7, 2021 19:12
WPF Button сontrol with automatic start of the timer command via a trigger
<ResourceDictionary
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:controls="clr-namespace:WPFUserControls.Controls">
<!--#region Static Resources -->
<SolidColorBrush x:Key="Button.Static.Background" Color="#FFDDDDDD"/>
<SolidColorBrush x:Key="Button.Static.Border" Color="#FF707070"/>
<SolidColorBrush x:Key="Button.MouseOver.Background" Color="#FFBEE6FD"/>
<SolidColorBrush x:Key="Button.MouseOver.Border" Color="#FF3C7FB1"/>