Skip to content

Instantly share code, notes, and snippets.

View erkantaylan's full-sized avatar
🍇

erkan erkantaylan

🍇
  • TURKEY
  • 06:00 (UTC +03:00)
View GitHub Profile
@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
@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 / 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
{
@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>
@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 / uskobypass.c
Created April 8, 2016 22:19 — forked from ZeusAFK/uskobypass.c
bypass code for knightonline
#include "stdafx.h"
#include <Windows.h>
#include <stdio.h>
#include <iostream>
#include <stdlib.h>
#include <fstream>
#include <strsafe.h>
using namespace std;
@erkantaylan
erkantaylan / setup.sh
Created December 22, 2015 14:38 — forked from krisf/setup.sh
Ubuntu setup for Ruby, Nginx, Postgres 9, Rails
#!/bin/bash
# install dependencies
apt-get update && apt-get upgrade
apt-get install build-essential bison openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-0 libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev
# install RVM
bash < <(curl -s https://rvm.beginrescueend.com/install/rvm)
### as per RVM instructions (both files)
//silly.js
function sumNumbers(a, b){
return a+b;
}
function sumNumbersAsync(a, b, callback){
var result = a + b;
callback(result);
}
//main.js
var cm = require("sdk/context-menu");
var item = cm.Item({
label: "Search on google",
data: "MyId",
//context: cm.PageContext()
//context: cm.URLContext(["*.mozilla.org","*.reddit.com"])
//context: cm.SelectionContext()