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> | |
<button click.delegate="addTo1()"> Add to 1 </button> | |
<button click.delegate="addTo2()"> Add to 2 </button> | |
<br /> | |
List1: | |
<ul> | |
<li repeat.for="item of list1">${item}</li> | |
</ul> |
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
{ | |
"snapshots": [ | |
{ | |
"snapshot": "20180327_master_rebuild", | |
"repository": "azurerepo", | |
"uuid": "1WtgTaOBQ52ma0k25TYZAg", | |
"state": "SUCCESS", | |
"shards_stats": { | |
"initializing": 0, | |
"started": 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
public interface IRetry | |
{ | |
Task RetryAsync(Func<Task> operation, CancellationToken cancellationToken); | |
Task<T> RetryAsync<T>(Func<Task<T>> operation, CancellationToken cancellationToken); | |
} | |
public interface IRetrySource | |
{ | |
IRetry Immediate(Predicate<Exception> shouldRetry, int maximumRetries); | |
IRetry WithLinearBackoff(Predicate<Exception> shouldRetry, int maximumRetries, TimeSpan firstDelay, TimeSpan delayIncrement); |
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
function Update-AppSettings($resourceGroup, $site, $slot, $inputFile) | |
{ | |
$webApp = Get-AzureRMWebAppSlot -ResourceGroupName $resourceGroup -Name $site -Slot $slot | |
$appSettingList = $webApp.SiteConfig.AppSettings | |
$hash = @{} | |
ForEach ($kvp in $appSettingList) { | |
$hash[$kvp.Name] = $kvp.Value | |
} |