Skip to content

Instantly share code, notes, and snippets.

View erkantaylan's full-sized avatar
🍇

erkan erkantaylan

🍇
  • TURKEY
  • 02:34 (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
//-----------------------------------------------------------------------
// <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>
//-----------------------------------------------------------------------
[
{
"enabled": false,
"id": 1,
"installDate": 1515832296049,
"md5Url": "https://update.userstyles.org/125466.md5",
"name": "Asana - Dark Cobalt",
"originalDigest": "91e4d298597d8a2ea4bea164a193e2c9476caff8",
"originalMd5": "98b7a7d600069c3521161538ed24a799",
"sections": [
@erkantaylan
erkantaylan / GetActiveWindowProcessName.ahk
Created May 22, 2017 10:36
Autohotkey Active Window Process Name
GetActiveWindowProcessName() {
WinGet, Active_ID, ID, A
WinGet, Active_Process, ProcessName, ahk_id %Active_ID%
return Active_Process
}

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

using System;
using System.Collections;
using System.Configuration.Install;
using System.Diagnostics;
using System.IO;
using System.Reflection;
using System.ServiceProcess;
using System.Windows.Forms;
using Microsoft.Win32;
@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
{