Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View NikolayIT's full-sized avatar

Nikolay Kostov NikolayIT

View GitHub Profile
using Encog;
using Encog.ML.Data;
using Encog.ML.Data.Basic;
using Encog.ML.Train;
using Encog.Neural.Networks;
using Encog.Neural.Networks.Layers;
using Encog.Neural.Networks.Training.Propagation.Resilient;
using System;
using System.Collections.Generic;
using Encog.Engine.Network.Activation;
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);
@NikolayIT
NikolayIT / gist:0c3a9f8330db10d892a9
Created October 23, 2015 06:23
Become SQL Admin.cmd
@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.
(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 November 15, 2015 00:46
Enigma Cat solution (Telerik Academy C# 2 Exam 2015)
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 August 29, 2015 14:16
Compare a += b with a = a + b
using System;
using System.Diagnostics;
class Program
{
static void Main(string[] args)
{
int a = 0;
int b = 1;
Stopwatch sw = new Stopwatch();
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}/";
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;