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
namespace Main | |
{ | |
public partial class MainView : MasterDetailPage | |
{ | |
public MainView() | |
{ | |
InitializeComponent(); | |
Detail = new NavigationPage(new StartView()) | |
{ |
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.Specialized; | |
using System.Reflection; | |
using Xamarin.Forms; | |
namespace Clistr.Controls | |
{ | |
public class BindablePicker : Picker | |
{ |
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.EntityFrameworkCore; | |
using Microsoft.EntityFrameworkCore.Infrastructure; | |
using Microsoft.Extensions.Configuration; | |
using System; | |
namespace CareBreeze.Data | |
{ | |
public abstract class DbContextFactory<T> : IDbContextFactory<T> where T : DbContext | |
{ | |
public string BasePath { get; protected 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
-- Split string Table-Valued function | |
CREATE FUNCTION SplitString | |
( | |
@Input NVARCHAR(MAX), | |
@Character CHAR(1) | |
) | |
RETURNS @Output TABLE ( | |
Item NVARCHAR(1000) | |
) | |
AS |
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
#!/bin/bash | |
dir=/var/<app> | |
src=/home/user/vstsagent/_work/r1/a/<app>/drop/<app>.zip | |
service=<app>.service | |
# Clear directory | |
echo "Remove content from '$dir'" | |
rm -r $dir >> /dev/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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Threading; | |
using System.Threading.Tasks; | |
using MediatR; | |
namespace TestingMediatR | |
{ | |
/// <summary> |
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> | |
/// Model to work with a subset of a set and render charts and graphs correctly. | |
/// </summary> | |
public class PartialSetSlicer | |
{ | |
/// <summary> | |
/// Construct a <see cref="PartialSetSlicer" /> with <see cref="Threshold" /> set to the distribution of the last element. | |
/// </summary> | |
/// <param name="set">Data set.</param> | |
/// <param name="size">Size for subset.</param> |
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
@echo off | |
if "%~1"=="" ( | |
set /p "migration=Migration name is required. Enter name: " | |
) | |
if "%migration%"=="" ( exit /b ) | |
set "filepath=%~2" | |
REM Content file is just one line as "-c MyDdContext -p Path/To/Project.csproj -o Path/To/Migrations |
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
# "C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin" | |
# "C:\Program Files (x86)\Microsoft SQL Server\140\DAC\bin\" | |
# Taken from psake https://github.com/psake/psake | |
<# | |
.SYNOPSIS | |
This is a helper function that runs a scriptblock and checks the PS variable $lastexitcode | |
to see if an error occcured. If an error is detected then an exception is thrown. |
OlderNewer