This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Install-Package iTextSharp -Version 5.5.10 | |
using iTextSharp.text; | |
using iTextSharp.text.pdf; | |
using iTextSharp.text.html.simpleparser; | |
private void printHtmlToPdf(string html) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Net; | |
public class GoogleCaptha | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"name": "Adana", | |
"districts": [ | |
{ | |
"name": "Aladağ" | |
}, | |
{ | |
"name": "Ceyhan" | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[HttpGet(Name = "GetWeatherForecast")] | |
public IActionResult Get() | |
{ | |
try | |
{ | |
IEnumerable<WeatherForecast> list = Enumerable.Range(1, 5).Select(index => new WeatherForecast | |
{ | |
Date = DateTime.Now.AddDays(index), | |
TemperatureC = Random.Shared.Next(-20, 55), | |
Summary = Summaries[Random.Shared.Next(Summaries.Length)] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Net; | |
using System.Text.Json; | |
namespace GlobalExceptionHandling.Middleware | |
{ | |
public class GlobalExceptionHandlingMiddleware | |
{ | |
private readonly RequestDelegate _next; | |
public GlobalExceptionHandlingMiddleware(RequestDelegate next) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace GlobalExceptionHandling.Middleware | |
{ | |
public class ResponseModel | |
{ | |
public int responseCode { get; set; } | |
public string? responseMessage { get; set; } | |
} | |
} |
OlderNewer