Skip to content

Instantly share code, notes, and snippets.

View erkantaylan's full-sized avatar
🍇

erkan erkantaylan

🍇
  • TURKEY
  • 22:51 (UTC +03:00)
View GitHub Profile
@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
@erkantaylan
erkantaylan / slack-theme-backup
Created April 3, 2018 13:20
Slack Custom Theme Color Backup
#5F0A87,#910FCE,#139eDA,#FFFFFF,#910FCE,#FFFFFF,#0A8720,#FF0000
@erkantaylan
erkantaylan / stylish-whatsapp.css
Last active February 16, 2018 06:36
Dark WhatsApp Theme by Mew Edited
/*
Theme : Dark WhatsApp Theme by Mew
Version: 1.1.0
Author : vednoc
Website: github.com/vednoc/rice
Discord: https://discord.gg/sNywty5
*/
:root {
--dark: #272C35;
--darker: #1F232A;
@erkantaylan
erkantaylan / autosave.cs
Created January 31, 2018 08:47
Visual Studio Auto Save via VCMD
public class E : VisualCommanderExt.IExtension
{
public void SetSite(EnvDTE80.DTE2 DTE_, Microsoft.VisualStudio.Shell.Package package)
{
DTE = DTE_;
System.Windows.Application.Current.Deactivated += OnDeactivated;
}
public void Close()
{