This file contains hidden or 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
# Connect to web-box | |
Enter-PsSession -ComputerName 192.0.32.10 -Credential "WS0114\Administrator" | |
# Prepare dependencies | |
Import-Module ServerManager | |
Import-Module WebAdministration | |
Import-Module BitsTransfer | |
# Install IIS | |
Add-WindowsFeature Web-Server |
This file contains hidden or 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
write-host "Hello World!" |
This file contains hidden or 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
public Task<string> Task1(){ | |
return TaskEx.Start(() => "abc"). | |
ContinueWithTask(t => Task2(t.Result)); // <-- Question is here | |
} | |
public Task<string> Task2(string input){ | |
} |
This file contains hidden or 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
public class SuperDTO | |
{ | |
public string A {get; set; } | |
public string B {get; set; } | |
public string C {get; set; } | |
public int D {get; set; } | |
} | |
public class A{ | |
public void M1(SuperDTO[] inp){} |
This file contains hidden or 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
// Unlike Tupe<T1, T2, T3> this stuff has names. This is important for readability. | |
public void ApplyVariationsWithStocks(IEnumerable<{ String SKU, | |
NameValuePair[] Values, | |
int AvailableQty }> variations) | |
{ | |
foreach(var variation in variations ) | |
{ | |
Console.WriteLine("SKU: {0}; Values: {1}; AvailableQty: {2}", | |
variation.SKU, |
This file contains hidden or 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
########################################################### | |
# | |
# Script to upgrade all NuGet packages in solution to last version | |
# | |
# USAGE | |
# Place this file (Upgrade-Package.ps1) to your solution folder. | |
# From Package Manager Console execute | |
# | |
# .\Upgrade-Package.ps1 -PackageID:Castle.Core | |
# |
This file contains hidden or 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.Windows.Browser; | |
/// <summary> | |
/// Small wrapper for FireBug, or anything else that support console. | |
/// BTW IE9 supports Log, Info and Error. | |
/// </summary> | |
/// <example> | |
/// // Time feature of the FireBug | |
/// using (HtmlConsole.Time("Create and set RootVisual")) |
This file contains hidden or 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
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" | |
ToolsVersion="4.0" > | |
<ItemGroup> | |
<DeployFiles Include="..\Output\**\*.*" /> | |
</ItemGroup> | |
<Target Name="Deploy" DependsOnTargets="_Clean"> | |
<!-- For now Output folder does not even existis --> | |
<!-- MSBuild will build all stuff an put to Output folder --> |
This file contains hidden or 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.Collections.Generic; | |
using System.Linq; | |
using System.Linq.Expressions; | |
using Castle.MicroKernel; | |
using Castle.MicroKernel.Registration; | |
using Commons.DomainDesign.Model; | |
namespace Inventory.Tests.Stubs | |
{ |
This file contains hidden or 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.Data; | |
using NHibernate; | |
using NHibernate.SqlTypes; | |
using NHibernate.UserTypes; | |
namespace Infrastructure.Data.NHibernate.UserTypes | |
{ | |
public class DateTime2UserType : IUserType | |
{ |