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 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; |
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
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); |
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
@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. |
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
(ex as System.Data.Entity.Validation.DbEntityValidationException) | |
.EntityValidationErrors | |
.ToList()[0] | |
.ValidationErrors | |
.ToList()[0] |
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; | |
using System.Text; | |
public class Program | |
{ | |
public static void Main() | |
{ | |
var words = Console.ReadLine().Split(' '); | |
foreach (var word in words) | |
{ | |
// 17 to decimal |
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; | |
using System.Diagnostics; | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
int a = 0; | |
int b = 1; | |
Stopwatch sw = new Stopwatch(); |
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; | |
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}/"; |
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 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; |
NewerOlder