Skip to content

Instantly share code, notes, and snippets.

View erkantaylan's full-sized avatar
🫖
I'm a teapot

erkan erkantaylan

🫖
I'm a teapot
  • TURKEY
  • 06:28 (UTC +03:00)
View GitHub Profile
@erkantaylan
erkantaylan / Visual Studio Extension List.md
Created December 18, 2018 14:50
Visual Studio Extension List

Code alignment

Viasfora

VSRestart2017

Keyboard Shortcuts Manager

Visual Commander

@erkantaylan
erkantaylan / KeyExtensions.cs
Created November 30, 2018 14:20
converting Keys to Key and Key To Keys
public static class KeyExtensions
{
public static System.Windows.Input.Key ToKey(this System.Windows.Forms.Keys keys)
{
return System.Windows.Input.KeyInterop.KeyFromVirtualKey((int) keys);
}
public static System.Windows.Forms.Keys ToKeys(this System.Windows.Input.Key key)
{
return (System.Windows.Forms.Keys) System.Windows.Input.KeyInterop.VirtualKeyFromKey(key);
using System;
using System.Globalization;
using System.Windows.Data;
using System.Windows.Input;
using MahApps.Metro.Controls;
namespace ChangeThis
{
public class AutohotkeyToMahappsHotKeyConverter : IValueConverter
{
@erkantaylan
erkantaylan / ColorTypes.cs
Last active October 30, 2018 11:29
Show Enum Description on View, Converter and Sample Enum
public enum ColorTypes
{
[Description("Mavi")] Blue,
[Description("Kırmızı")] Red,
[Description("Yeşil")] Green,
[Description("Sarı")] Yellow
}
@erkantaylan
erkantaylan / FolderTree.xaml
Created July 26, 2018 14:48 — forked from jsonw23/FolderTree.xaml
Folder Tree WPF Control: Part 1 - Lazy Loading
<TreeView ItemsSource="{Binding Path=Drives}" TreeViewItem.Expanded="FolderTree_Expanded">
<TreeView.ItemContainerStyle>
<Style TargetType="TreeViewItem">
<Setter Property="IsExpanded" Value="{Binding Path=IsExpanded, Mode=TwoWay}" />
</Style>
</TreeView.ItemContainerStyle>
<TreeView.ItemTemplate>
<HierarchicalDataTemplate ItemsSource="{Binding Path=Folders}">
<TextBlock Text="{Binding Path=Label}" />
</HierarchicalDataTemplate>
[
{
"enabled": false,
"id": 1,
"installDate": 1515832296049,
"md5Url": "https://update.userstyles.org/125466.md5",
"name": "Asana - Dark Cobalt",
"originalDigest": "91e4d298597d8a2ea4bea164a193e2c9476caff8",
"originalMd5": "98b7a7d600069c3521161538ed24a799",
"sections": [
@erkantaylan
erkantaylan / richhickey.md
Created April 20, 2018 12:33 — forked from prakhar1989/richhickey.md
richhickey.md

Rich Hickey on becoming a better developer

Rich Hickey • 3 years ago

Sorry, I have to disagree with the entire premise here.

A wide variety of experiences might lead to well-roundedness, but not to greatness, nor even goodness. By constantly switching from one thing to another you are always reaching above your comfort zone, yes, but doing so by resetting your skill and knowledge level to zero.

Mastery comes from a combination of at least several of the following:

@erkantaylan
erkantaylan / wpf-helper-projects.md
Last active April 16, 2018 08:34
Some projects I might use in future
https://github.com/Fody/PropertyChanged
https://github.com/yusuf-gunaydin/Bindables

https://github.com/Fody/Anotar

https://github.com/Fody/Validar
https://github.com/JeremySkinner/FluentValidation

https://github.com/aljazsim/defensive-programming-framework-for-net
//-----------------------------------------------------------------------
// <copyright file="SingleInstance.cs" company="Microsoft">
// Copyright (c) Microsoft Corporation. All rights reserved.
// </copyright>
// <summary>
// This class checks to make sure that only one instance of
// this application is running at a time.
// </summary>
//-----------------------------------------------------------------------
eyJ2ZXJzaW9uIjoxLjMsImZlYXR1cmVzIjp7ImxvY2F0aW9uIjp7InJvb20iOnRydWUsIm91dHNpZGUiOnRydWUsIndvcmxkIjp0cnVlfX0sInN0b3JlcyI6eyJ3b29kIjo5OTk5NTgxNCwiZnVyIjo5OTk3MjI4OCwiYmFpdCI6OTk5OTkyNTMsImNsb3RoIjo5OTk5MTQ2LCJtZWF0Ijo5OTk4NDkyOCwidGVldGgiOjk5OTQ0NDUsInNjYWxlcyI6OTg4NDQzLCJsZWF0aGVyIjo5OTk5NjcwLCJjdXJlZCBtZWF0Ijo5OTkxODEsImNvbXBhc3MiOjEsInRvcmNoIjo0LCJib25lIHNwZWFyIjowLCJ3YXRlcnNraW4iOjEsIm1lZGljaW5lIjo5OTk2LCJydWNrc2FjayI6MSwiY2hhcm0iOjUsImwgYXJtb3VyIjoxLCJpcm9uIjo5OTk5MjQsIndhZ29uIjoxLCJpcm9uIHN3b3JkIjowLCJjYXNrIjoxLCJpIGFybW91ciI6MSwiYm9sYXMiOjk5OTk5LCJzdGVlbCI6MTAwMDAwLCJzdGVlbCBzd29yZCI6OTk5OTQsImNvYWwiOjEwMDAwMCwid2F0ZXIgdGFuayI6MSwiY29udm95IjoxLCJzIGFybW91ciI6MSwiYWxpZW4gYWxsb3kiOjEwMDAxNywiZW5lcmd5IGNlbGwiOjEwMDAwMCwiYnVsbGV0cyI6MTAwNDI4LCJyaWZsZSI6MTAwMDAwLCJncmVuYWRlIjo5OTk3NywiYmF5b25ldCI6MTAwMDAxLCJzdWxwaHVyIjo5OTk5OX0sImNoYXJhY3RlciI6eyJwdW5jaGVzIjo0LCJwZXJrcyI6eyJldmFzaXZlIjp0cnVlLCJiYXJiYXJpYW4iOnRydWUsInNjb3V0Ijp0cnVlLCJwcmVjaXNlIjp0cnVlLCJnYXN0cm9ub21lIjp0cnVlfSwic3RhcnZlZCI6NCwiZGVoeWRyYXRlZCI6