Mover into standalone project on https://github.com/rarous/AngularJS-TypeScript
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
| module CodeRetreat | |
| open Xunit | |
| type Cell = | |
| | DeadCell of int | |
| | LiveCell of int | |
| let hasChanceToLife (cell:Cell) = | |
| match cell with |
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
| if (content.Contains("dDwtMTcyMjY0OTc3Mjt0PDtsPGk8MT47PjtsPHQ8O2w8aTwxPjtpPDQ+O2k8Nj47aTw4PjtpPDEwPjtpPDEyPjtpPDE0Pjs+O2w8dDw7bDxpPDE")) | |
| { | |
| throw new AccessDeniedException("Old viewstate found."); | |
| } |
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
| var items = CreateRequestUris(requestXml). | |
| Select(Downloader.Download). | |
| SelectMany(Parse); | |
| return new Response(TransformResult(items)); |
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
| readonly int source; | |
| readonly int from; | |
| readonly int to; | |
| Data(int source, int from, int to) | |
| { | |
| this.source = source; | |
| this.from = from; | |
| this.to = to; | |
| } |
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
| [ ] Install Visual Studio with all stuff you need | |
| [ ] Install FxCop | |
| [ ] Install Code Metrics Power Tool (http://www.microsoft.com/en-us/download/details.aspx?id=9422w) | |
| [ ] Install TeamCity | |
| [ ] Install NuGet (via TeamCity admin console) | |
| On port 80 | |
| ========== | |
| [ ] Disable World Wide Web Service | |
| [ ] Disable Web Deployment Agent Service |
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.Linq; | |
| using Castle.MicroKernel; | |
| using Castle.Windsor; | |
| public static class WindsorExtensions | |
| { | |
| public static IWindsorContainer AddFacilitySafe<TFacility>(this IWindsorContainer container) | |
| where TFacility : class, IFacility, new() | |
| { | |
| if (container.Kernel.GetFacilities().Any(x => x.GetType() == typeof(TFacility))) |
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
| from x in list | |
| where x | |
| let y = new { X = x } | |
| orderby y.X | |
| select y; |
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 static bool ProxyTypeMatch(ProxyServerType server, RequiredProxyType required) | |
| { | |
| switch (required) | |
| { | |
| case RequiredProxyType.Any: | |
| switch (server) | |
| { | |
| case ProxyServerType.Http: | |
| case ProxyServerType.Socks4: | |
| case ProxyServerType.Socks5: |
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
| $env:MSBuildEmitSolution=1 | |
| msbuild FooBar.sln /t:ValidateSolutionConfiguration | |
| $env:MSBuildEmitSolution=0 |