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
private readonly IList<ProductImageAssignee> _images = new List<ProductImageAssignee>(); | |
public virtual IEnumerable<ProductImageAssignee> Images { get { return _images; } } |
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
-- Stupid solution to remove duples from sql table... | |
DECLARE @temp TABLE | |
( | |
[Col1] [uniqueidentifier] NOT NULL, | |
[Col2] [uniqueidentifier] NOT NULL | |
) | |
INSERT INTO @temp | |
SELECT DISTINCT [Col1] ,[Col2] |
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
#r "WindowsBase.dll" | |
#r "PresentationCore.dll" | |
#r "System.Xaml.dll" | |
(* | |
Script to copy all photos from flash card to | |
some folder in form of /Year/Month/Day of the DateTaken | |
DateTaken is retrieved from EXIF infroamtion. | |
To make this script work, you have ensure that all | |
applicable WIC codecs are installed. For example |
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.IO; | |
using System.Net; | |
using System.Security.AccessControl; | |
using System.Text; | |
namespace SimpleExample | |
{ | |
class Program | |
{ |
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
open System.IO | |
open System.Net | |
open System.Text | |
async { | |
let file = File.OpenRead("Program.fs") | |
let! stuff = file.AsyncRead(250) | |
printfn "%A" (Encoding.Default.GetString(stuff)) |
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
[Serializable] | |
public struct ArrayValue<T> : IEnumerable<T> | |
{ | |
private List<T> _under; | |
public ArrayValue(IEnumerable<T> under) | |
{ | |
_under = new List<T>(under); | |
} |
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
class Program | |
{ | |
public static void Main() | |
{ | |
var ctor = typeof (R).GetConstructor(new Type[] {typeof (string)}); | |
var result = (R)ctor.Invoke(new object[]{"a"}); | |
result.Test(); | |
} |
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 | |
{ |
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
<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 --> |