Skip to content

Instantly share code, notes, and snippets.

👨‍💻
Back to business

Evgeny Zborovsky yuv4ik

👨‍💻
Back to business
Block or report user

Report or block yuv4ik

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@yuv4ik
yuv4ik / IEntity.cs
Last active Aug 23, 2017
EntityFramework database first => generalising timestamps
View IEntity.cs
namespace SameNameSpaceAsAutoGeneratedDbContext
{
public interface IEntity
{
int Id { get; set; }
DateTime CreatedAt { get; set; }
DateTime? UpdatedAt { get; set; }
DateTime? DeletedAt { get; set; }
}
@yuv4ik
yuv4ik / ExtendedEntry.cs
Created May 5, 2017
Xamarin.Forms iOS Numeric Keyboard With 'Done' Button
View ExtendedEntry.cs
using Xamarin.Forms;
namespace YourNamespace.Controls
{
public class ExtendedEntry : Entry { }
}
@yuv4ik
yuv4ik / git_rename.sh
Created Apr 28, 2017
git rename a file (case sensitive)
View git_rename.sh
git mv -f OldFileNameCase newFileNameCase
@yuv4ik
yuv4ik / ViewController.swift
Created Mar 20, 2017
iOS UIDatePicker in UIDatePickerMode.countDownTimer value changed bug
View ViewController.swift
import UIKit
class ViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view, typically from a nib.
// Create a DatePicker
let datePicker: UIDatePicker = UIDatePicker()
@yuv4ik
yuv4ik / AuthTokenDocumentFilter.cs
Last active Feb 3, 2017
Adding swagger to asp.net web.api 2 owin
View AuthTokenDocumentFilter.cs
public class AuthTokenDocumentFilter : IDocumentFilter
{
public void Apply(SwaggerDocument swaggerDoc, SchemaRegistry schemaRegistry, IApiExplorer apiExplorer)
{
swaggerDoc.paths.Add("/token", new PathItem
{
post = new Operation
{
tags = new List<string> { "Auth" },
consumes = new List<string>
You can’t perform that action at this time.