Skip to content

Instantly share code, notes, and snippets.

Avatar
:octocat:
Working from home

Emrah Karaman ekaraman89

:octocat:
Working from home
View GitHub Profile
@ekaraman89
ekaraman89 / result.json
Created Apr 15, 2020 — forked from MuhammetDilmac/result.json
Türkiye Şehirler ve İlçeleri
View result.json
[
{
"name": "Adana",
"districts": [
{
"name": "Aladağ"
},
{
"name": "Ceyhan"
},
View removeDuplicate.js
function onlyUnique(value, index, self) {
return self.indexOf(value) === index;
}
// usage example:
var a = ['a', 1, 'a', 2, '1'];
var unique = a.filter( onlyUnique ); // returns ['a', 1, 2, '1']
View GoogleCaptha.cs
using System.Net;
public class GoogleCaptha
{
View Helper.cs
// Install-Package iTextSharp -Version 5.5.10
using iTextSharp.text;
using iTextSharp.text.pdf;
using iTextSharp.text.html.simpleparser;
private void printHtmlToPdf(string html)
{
View Kredi Kartı BIN Listesi - CSV
bin,banka_kodu,banka_adi,type,sub_type,virtual,prepaid
413226,10,T.C. ZİRAAT BANKASI A.Ş.,VISA,PLATINUM
444676,10,T.C. ZİRAAT BANKASI A.Ş.,VISA,CLASSIC
444677,10,T.C. ZİRAAT BANKASI A.Ş.,VISA,GOLD
444678,10,T.C. ZİRAAT BANKASI A.Ş.,VISA,PLATINUM
453955,10,T.C. ZİRAAT BANKASI A.Ş.,VISA, CLASSIC
453956,10,T.C. ZİRAAT BANKASI A.Ş.,VISA, GOLD
454671,10,T.C. ZİRAAT BANKASI A.Ş.,VISA, CLASSIC
454672,10,T.C. ZİRAAT BANKASI A.Ş.,VISA, CLASSIC
454673,10,T.C. ZİRAAT BANKASI A.Ş.,VISA, BUSINESS
View education.sql
USE [OnlineEducation]
GO
SET IDENTITY_INSERT [dbo].[Lesson] ON
GO
INSERT [dbo].[Lesson] ([ID], [Name], [Mission]) VALUES (1, N'Ders 1', N'Ders 1 amaç')
GO
INSERT [dbo].[Lesson] ([ID], [Name], [Mission]) VALUES (2, N'Ders 2', N'Ders 2 amaç')
GO
INSERT [dbo].[Lesson] ([ID], [Name], [Mission]) VALUES (3, N'Ders 3', N'Ders 3 amaç')
GO
@ekaraman89
ekaraman89 / random.sql
Last active Jul 18, 2019
t-sql random string
View random.sql
String > SUBSTRING(CONVERT(varchar(40), NEWID()),0,9)
0 - 1 > convert(bit, round(1*rand(),0))
5 - 40 > Cast(RAND()*(40-5)+5 as int)