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
# SetAssemblyVersion.ps1 | |
# | |
# http://www.luisrocha.net/2009/11/setting-assembly-version-with-windows.html | |
# http://blogs.msdn.com/b/dotnetinterop/archive/2008/04/21/powershell-script-to-batch-update-assemblyinfo-cs-with-new-version.aspx | |
# http://jake.murzy.com/post/3099699807/how-to-update-assembly-version-numbers-with-teamcity | |
# https://github.com/ferventcoder/this.Log/blob/master/build.ps1#L6-L19 | |
Param( | |
[string]$path=$pwd | |
) |
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
<?xml version="1.0" encoding="UTF-8" ?> | |
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms" | |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
xmlns:i18n="clr-namespace:QuickTodo;assembly=QuickTodo" | |
x:Class="TodoXaml.TodoItemXaml"> | |
<ContentPage.Content> | |
<StackLayout VerticalOptions="StartAndExpand"> | |
<Label Text="{i18n:Translate Name}" /> |
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
<system.web> | |
<!-- --> | |
<trace enabled="false" /> | |
<!-- --> | |
<deployment retail="true"/> | |
<!-- --> |
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
############################################# | |
## | |
## Monitor ASP.NET WebAPI Enpoints | |
## Author: Stefan Prodan | |
## Date : 7 Apr 2014 | |
## Company: VeriTech.io | |
############################################# | |
#Base url | |
$urlPrefix = "http://localhost/MyApp.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
using System.Threading.Tasks; | |
using System.Web.Mvc; | |
using JetBrains.Annotations; | |
using ShortBus; | |
public abstract class BaseController : Controller | |
{ | |
public IMediator Mediator { get; set; } | |
protected Response<TResult> Query<TResult>(IQuery<TResult> query) |
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 AsyncMediatorPipeline<TRequest, TResponse> : IAsyncRequestHandler<TRequest, TResponse> where TRequest : IAsyncRequest<TResponse> | |
{ | |
private readonly IAsyncRequestHandler<TRequest, TResponse> inner; | |
private readonly IAsyncPreRequestHandler<TRequest>[] preRequestHandlers; | |
private readonly IAsyncPostRequestHandler<TRequest, TResponse>[] postRequestHandlers; | |
public AsyncMediatorPipeline(IAsyncRequestHandler<TRequest, TResponse> inner, IAsyncPreRequestHandler<TRequest>[] preRequestHandlers, IAsyncPostRequestHandler<TRequest, TResponse>[] postRequestHandlers) | |
{ | |
this.inner = inner; |
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 Autofac; | |
using Autofac.Core; | |
using Cloudinator.Portal.WebApi.Infrastructure; | |
using Cloudinator.Portal.WebApi.Infrastructure.Handlers; | |
using FluentValidation; | |
using MediatR; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Reflection; |
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
{ | |
"StatusCode": 200, | |
"Result": { | |
Name = "Wellwind", | |
Age = 30 | |
}, | |
"Error": null | |
} |
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
# Complement to Faker gem to create credit card number | |
# Usage: | |
# > Faker::CreditCard.visa | |
# => "4916287009378994" | |
# | |
# Card support: | |
# visa, master, amex, discover, diners, en_route, jcb, voyager | |
# Inspired by: http://www.darkcoding.net/credit-card/luhn-formula/ |
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 Xamarin.Forms; | |
namespace YOUTNAMESPACE | |
{ | |
public class LineEntry : Entry | |
{ | |
public static readonly BindableProperty BorderColorProperty = | |
BindableProperty.Create<LineEntry, Color> (p => p.BorderColor, Color.Black); | |
public Color BorderColor { |