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
| Param( | |
| [String]$projectFolder, | |
| [String]$buildId | |
| ) | |
| if (-Not $projectfolder) { | |
| Write-Host "no project folder set" | |
| exit 1 | |
| } |
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
| Param( | |
| [string]$dir | |
| ) | |
| function ZipFiles( $zipfilename, $sourcedir ) | |
| { | |
| Add-Type -Assembly System.IO.Compression.FileSystem | |
| $compressionLevel = [System.IO.Compression.CompressionLevel]::Optimal | |
| [System.IO.Compression.ZipFile]::CreateFromDirectory($sourcedir, |
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
| Param( | |
| [string]$HockeyAppAppID, | |
| [string]$HockeyAppApiToken | |
| ) | |
| $zipFile = Get-Item *.zip | Select-Object -first 1 | |
| Write-Host "Zip file found to upload $($zipFile)" | |
| $create_url = "https://rink.hockeyapp.net/api/2/apps/$HockeyAppAppID/app_versions/new" | |
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
| sln="$1" | |
| curl -s -O https://dist.nuget.org/win-x86-commandline/v3.3.0/nuget.exe | |
| mono nuget.exe restore "$sln" |
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
| <Pivot Title="Pivot"> | |
| <Pivot.Resources> | |
| <DataTemplate x:Key="EmptyHeaderTemplate"> | |
| <Grid /> | |
| </DataTemplate> | |
| <Style x:Key="NoHeaderPivotStyle" | |
| TargetType="Pivot"> | |
| <Setter Property="Margin" | |
| Value="0" /> | |
| <Setter Property="Padding" |
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
| //Realm | |
| _realm.Write(() => | |
| { | |
| for (int i = 0; i < 1000; i++) | |
| { | |
| var order = _realm.CreateObject<RealmOrder>(); | |
| order.OrderNumber = $"Order{i}"; | |
| order.Price = i; | |
| order.Title = Title = $"title {i}"; |
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
| //Realm sample queries | |
| var realmOrders = _realm.All<RealmOrder>().Where(o => o.Price >= 900).ToList(); | |
| var realmOrderLines = _realm.All<RealmOrderLine>().Where(l => l.Amount == 2).ToList(); | |
| //Sqlite generic query | |
| public async Task<List<T>> Query<T>(Expression<Func<T,bool>> query) where T : class | |
| { | |
| return await sql.GetAllWithChildrenAsync<T>(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
| { | |
| "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", | |
| "contentVersion": "1.0.0.0", | |
| "parameters": { | |
| "TmpAppPlanInASEName": { | |
| "type": "string", | |
| "minLength": 1 | |
| }, | |
| "appServiceEnvironmentName": { | |
| "type": "string", |
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
| Trace-VstsEnteringInvocation $MyInvocation | |
| $fileUrl = Get-VstsInput -Name fileUrl -Require | |
| $sitecoreUrl = Get-VstsInput -Name sitecoreUrl -Require | |
| Write-Host "Sitecore URL $sitecoreUrl" | |
| Write-Host "file URL $fileUrl" | |
| Write-Host "create httpclient" |
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
| Feature: Serve coffee | |
| Coffee should not be served until paid for | |
| Coffee should not be served until the button has been pressed | |
| If there is no coffee left then money should be refunded | |
| Scenario: Buy last coffee | |
| Given there are 1 coffees left in the machine | |
| And I have deposited 1$ | |
| When I press the coffee button | |
| Then I should be served a coffee |
OlderNewer