Skip to content

Instantly share code, notes, and snippets.

View erkantaylan's full-sized avatar
🍇

erkan erkantaylan

🍇
  • TURKEY
  • 04:09 (UTC +03:00)
View GitHub Profile
@erkantaylan
erkantaylan / .editorconfig
Last active January 25, 2024 10:15
DotNet .editorconfig file
[*]
# Microsoft .NET properties
csharp_indent_braces = false
csharp_new_line_before_members_in_object_initializers = false
csharp_new_line_before_open_brace = accessors,anonymous_methods,anonymous_types,control_blocks,events,indexers,lambdas,local_functions,methods,object_collection_array_initalizers,properties
csharp_preferred_modifier_order = protected, public, virtual, private, file, new, internal, static, override, async, sealed, abstract, extern, unsafe, volatile, readonly, required:suggestion
csharp_prefer_braces = true:suggestion
csharp_preserve_single_line_blocks = true
@erkantaylan
erkantaylan / AudioModule.cs
Created December 7, 2021 20:09 — forked from Joe4evr/AudioModule.cs
D.Net 1.0 audio example
using System.Threading.Tasks;
using Discord.Commands;
public class AudioModule : ModuleBase<ICommandContext>
{
// Scroll down further for the AudioService.
// Like, way down
private readonly AudioService _service;
// Remember to add an instance of the AudioService

I am just trying to translate this article to practice English. All credits to Bager Akbay https://bagerakbay.com/sanat-ve-teknoloji/

Art and Technology by Bager Akbay

This year I was included in a project that I relished a lot. In an activity, the Art Maker Lab Center of İstanbul Modern Museum launched their first application called “Can Robots Make Art?”. I don't know the answer, in fact, we weren’t even looking for an answer when we asked this question to begin with.

I always tried to express myself with words from the 20th century but I failed to do so. I remember that in 1998, back when I was doing intense theater rehearsals, I woke up one night because of a nightmare. I wanted to explain my dream but everyone was still sleeping. I sat down and wrote its code. I didn't draw its picture, I didn't write its story—actually I did both, but I did so inside the software. I don't know why I did it that way. I don't remember the reason, but I remember I doing it. Everyone needs environments in which they c

@erkantaylan
erkantaylan / keyboardlistener.cs
Created February 14, 2020 11:26 — forked from Ciantic/keyboardlistener.cs
C# Keyboard listener
using System;
using System.Diagnostics;
using System.Runtime.InteropServices;
using System.Runtime.CompilerServices;
using System.Windows.Input;
using System.Windows.Threading;
using System.Collections.Generic;
namespace Ownskit.Utils
{
@erkantaylan
erkantaylan / dotnet.gitignore
Last active January 29, 2020 23:24
gitignore for dotnet environment (visual studio / gitflow / jetbrains products / mono / xamarin)
## Ignore Visual Studio temporary files, build results, and
## files generated by popular Visual Studio add-ons.
##
## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore
# User-specific files
*.suo
*.user
*.userosscache
@erkantaylan
erkantaylan / multipart.cs
Created November 15, 2019 13:51 — forked from subena22jf/multipart.cs
c# download multi part
using System;
using System.Collections.Generic;
using System.IO;
using System.Net.Http;
using System.Threading.Tasks;
namespace TestApp
{
internal class Program
{
{
"customers": [
{
"anydesk_id": "111 222 333",
"cell_phone": "+9088899977564",
"name": "Mr Jonathan",
"pc_name": "Jonathans Pc",
"time": "24.09.2019 13:25:57"
},
{
@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
{