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.Concurrent; | |
using System.Collections.Generic; | |
using System.Collections.ObjectModel; | |
using System.Linq.Expressions; | |
using System.Threading.Tasks; | |
using FluentAssertions; | |
using NUnit.Framework; | |
namespace Commander |
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.IO; | |
using System.Linq; | |
using System.Xml.Linq; | |
public class Register | |
{ | |
public Register(){ | |
//These two registrations provide the same functionality. |
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
node { | |
stage('Preparation') { | |
//git checkout goes here | |
} | |
stage('Build') { | |
try { | |
bat 'build Default BuildSolution' | |
} catch (e) { | |
throw e | |
} |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<configuration> | |
<system.webServer> | |
<rewrite> | |
<rules> | |
<!-- ADD YOUR RULES HERE --> | |
<rule name="Redirect_to_https" stopProcessing="true"> | |
<match url="(.*)" /> | |
<conditions> | |
<add input="{HTTPS}" pattern="off" ignoreCase="true" /> |
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
@for (int i = 0; i < Model.DisplayRows; i++) | |
{ | |
var skip = (i == 0) ? i : i * 3; | |
<div class="row-fluid"> | |
@foreach (var product in Model.StoreProducts.Skip(skip).Take(3)) | |
{ | |
<div class="span4 leaf-container" style="margin-bottom: 20px; min-height: 215px; | |
border: 1px solid #DDD"> | |
<img class="on-sale-strap" src="https://mtgshops.blob.core.windows.net/site/onSale.png" /> |
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
[AttributeUsage(AttributeTargets.Property, AllowMultiple = false)] | |
public class CvvAttribute : DataTypeAttribute | |
{ | |
public CvvAttribute() | |
: base("cvv") | |
{ | |
} | |
public override string FormatErrorMessage(string name) | |
{ |
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 DemoPage : ContentPage | |
{ | |
public DemoPage () | |
{ | |
var image = new Image () { | |
Source = "http://eric.polerecky.com/images/abstract-1.jpg", | |
VerticalOptions = LayoutOptions.Start, | |
Scale = 3, | |
AnchorY = 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
/// <summary> | |
/// ReactiveObject can't be stored in Akavache? | |
/// </summary> | |
public class ReactiveItem //: ReactiveObject | |
{ | |
public string Name { get; set; } | |
public override string ToString () | |
{ | |
return string.Format ("[ReactiveItem: Name={0}]", Name); |
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
<ViewCell> | |
<ViewCell.ContextActions> | |
<MenuItem Command="{Binding MoreCommand}" Text="More" /> | |
<MenuItem Command="{Binding DeleteCommand}" Text="Delete" IsDestructive="True" /> | |
</ViewCell.ContextActions> | |
</ViewCell> |
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
//------ Creating Contact Action 1 Start --------// | |
var moreAction = new MenuItem { Text = "More" }; | |
moreAction.SetBinding (MenuItem.CommandParameterProperty, new Binding (".")); | |
moreAction.Clicked += async (sender, e) => { | |
await Task.Run (() => { | |
var mi = ((MenuItem)sender); | |
Debug.WriteLine ("More Context Action clicked: " + mi.CommandParameter); | |
}); | |
}; | |
ContextActions.Add (moreAction); |