Skip to content

Instantly share code, notes, and snippets.

View yemrekeskin's full-sized avatar
🎯
Focusing

yunus emre keskin yemrekeskin

🎯
Focusing
View GitHub Profile
@yemrekeskin
yemrekeskin / CheckInternetConnection.cs
Created March 5, 2015 07:35
Check Internet Connection with c#
class Program
{
static void Main(string[] args)
{
if(CheckInternetConnection())
Console.WriteLine("Internet var");
else Console.WriteLine("Internet yok");
Console.ReadLine();
@yemrekeskin
yemrekeskin / TurkishIdNoGenerator.html
Created July 23, 2014 08:33
Random Turkish Identification Number Generator with javascript
<!--
Random Turkish Identification Number Generator
-->
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
</head>
<body>
using System;
using System.Drawing;
using System.Text.RegularExpressions;
using System.Threading;
using System.Windows.Forms;
public class WebsiteThumbImage
{
public int ThumbWidth { get; set; }
public int ThumbHeight { get; set; }
@yemrekeskin
yemrekeskin / ObjectMapper.cs
Last active September 11, 2022 12:36
using Automapper vs Custom Object Mapper(with reflection) for data transformation of objects
public class BaseModel
{
public Guid Id { get; set; }
public DateTime CreateDate { get; set; }
public bool IsActive { get; set; }
public string LastUpdatingUserName { get; set; }
public DateTime LastUpdatingDate { get; set; }
}
@yemrekeskin
yemrekeskin / GuidCombGenerator.cs
Created August 3, 2014 13:34
Sequential Guid Generator C#
public interface IIdentifierGenerator
{
Guid SequentialGuid();
}
public class GuidCombGenerator
: IIdentifierGenerator
{
public Guid SequentialGuid()
{
public void Deneme(string filename)
{
// variables
var pathin = Path.Combine(
Directory.GetCurrentDirectory(),"wwwroot",
filename);
string pathout = Path.Combine(
Directory.GetCurrentDirectory(),"wwwroot/exported",
filename);
@yemrekeskin
yemrekeskin / FetchGmailContacts.cs
Created June 23, 2014 05:53
Retrieving all google contacts using c#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Google.Contacts;
using Google.GData.Contacts;
using Google.GData.Client;
using Google.GData.Extensions;
using ComManager.Models;
using Dapper;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Data.SqlClient;
using System.Linq;
namespace ComManager.Repository
{
using ComManager.Models;
using Dapper;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Data.SqlClient;
using System.Linq;
namespace ComManager.Repository
{
@yemrekeskin
yemrekeskin / GenericNotifierJobExecuter.cs
Created January 21, 2014 14:41
Generic Notifier Job Executor class written C# with Quartz.NET
public abstract class BaseNotifierJobExecuter<TJob>
: INotifierJobExecuter
where TJob : IJob
{
private ISchedulerFactory schedulerFactory = new StdSchedulerFactory();
public IScheduler scheduler = null;
protected IJob jobAction = null;
protected string CronExpression = String.Empty;
protected string jobKey = String.Empty;