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.Collections; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using System.Reactive.Linq; | |
namespace FunctionalExtensions | |
{ |
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.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using System.Reactive.Linq; | |
namespace ReactiveUI.Utils | |
{ | |
// From http://stackoverflow.com/questions/10772727/exception-or-either-monad-in-c-sharp |
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
<#@ template debug="false" hostspecific="false" language="C#" #> | |
<#@ assembly name="System.Core" #> | |
<#@ assembly name="PresentationCore" #> | |
<#@ assembly name="PresentationFramework" #> | |
<#@ assembly name="System.Xaml" #> | |
<#@ import namespace="System.Linq" #> | |
<#@ import namespace="System.Text" #> | |
<#@ import namespace="System.Diagnostics"#> | |
<#@ import namespace="System.IO"#> | |
<#@ import namespace="System.Linq"#> |
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
[2018-02-26 13:36:16,380] INFO - jetbrains.buildServer.STARTUP - Server shutdown event received | |
[2018-02-26 13:36:16,382] INFO - jetbrains.buildServer.STARTUP - Current stage: TeamCity server is shutting down | |
[2018-02-26 13:36:16,382] INFO - jetbrains.buildServer.STARTUP - Stopping the main application | |
[2018-02-26 13:36:16,483] INFO - jetbrains.buildServer.STARTUP - Destroying the main servlet | |
[2018-02-26 13:36:16,483] INFO - MainTeamCityApplicationContext - Closing WebApplicationContext for namespace 'buildServer-servlet': startup date [Mon Feb 26 12:47:07 CET 2018]; parent: jetbrains.buildServer.maintenance.WebDispatcherApplicationContext@1dc816b |
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
public class TwoWayBindingWithConversionDemo | |
{ | |
public class Model : ReactiveObject | |
{ | |
/// <summary> | |
/// The model length will be in units meters | |
/// </summary> | |
[Reactive] public double LengthInMeters { get; set;} | |
} |
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 Microsoft.Azure; | |
using Microsoft.WindowsAzure; | |
using Owin; | |
using Weingartner.Distribution.Website.Accounts; | |
using Weingartner.Distribution.Website.Storage; | |
using Weingartner.Distribution.Website.Storage.Azure; | |
namespace Weingartner.Distribution.Website.Hosting.Azure | |
{ | |
public class AzureStartup |
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
/// <summary> | |
/// Faster version of intersect than the eyeshot code. | |
/// </summary> | |
/// <param name="this"></param> | |
/// <param name="other"></param> | |
/// <param name="intersection"></param> | |
/// <returns>Returns true if there is an intersection. Returns false if it is colinear.</returns> | |
public static bool Intersect(this Segment2D @this, Segment2D other, out Point2D intersection) | |
{ | |
intersection = null; |
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
False : Evil time is 668 | |
True : Good time is 261 |
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.Collections.Generic; | |
using System.Diagnostics; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using devDept.Geometry; | |
using Xunit; | |
using Xunit.Abstractions; |
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
Vector3D Normal(Solid3D.Face face, Point3D p) | |
{ | |
return face | |
.Parametric | |
.SelectMany | |
(s => s.PointInversion( p, 1e-3, out var coord2D ) | |
? Some((p: s.PointAt(coord2D), n: s.Normal(coord2D))) | |
: None ) | |
.MaxBy(q => p.DistanceTo(q.p)) | |
[0].n; |