Skip to content

Instantly share code, notes, and snippets.

Nikolay Kostov NikolayIT

Block or report user

Report or block NikolayIT

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View HttpClientHttps.cs
var client = new HttpClient { BaseAddress = new Uri("https://api.guildwars2.com/v2/") };
var result = client.GetAsync("items/57").Result.Content.ReadAsStringAsync().Result;
Console.WriteLine(result);
View gist:0c3a9f8330db10d892a9
@echo off
rem
rem ****************************************************************************
rem
rem Copyright (c) Microsoft Corporation. All rights reserved.
rem This code is licensed under the Microsoft Public License.
rem THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF
rem ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY
rem IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR
rem PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.
View EntityFrameworkExceptions.cs
(ex as System.Data.Entity.Validation.DbEntityValidationException)
.EntityValidationErrors
.ToList()[0]
.ValidationErrors
.ToList()[0]
@NikolayIT
NikolayIT / Enigma Cat solution (Telerik Academy C# 2 Exam 2015).cs
Last active Nov 15, 2015
Enigma Cat solution (Telerik Academy C# 2 Exam 2015)
View Enigma Cat solution (Telerik Academy C# 2 Exam 2015).cs
using System;
using System.Text;
public class Program
{
public static void Main()
{
var words = Console.ReadLine().Split(' ');
foreach (var word in words)
{
// 17 to decimal
@NikolayIT
NikolayIT / ComparePlusEqualWithEqualPlus.cs
Last active Aug 29, 2015
Compare a += b with a = a + b
View ComparePlusEqualWithEqualPlus.cs
using System;
using System.Diagnostics;
class Program
{
static void Main(string[] args)
{
int a = 0;
int b = 1;
Stopwatch sw = new Stopwatch();
View it-ebooks.info Downloader.cs
using System;
using System.IO;
using System.Net;
using System.Text;
using System.Threading;
public static class Program
{
private const string BookUrlPattern = "http://it-ebooks.info/book/{0}/";
View GetMachineKeyConfiguration.cs
namespace MyWebApp
{
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Web.Configuration;
using System.Web.Mvc;
You can’t perform that action at this time.