Skip to content

Instantly share code, notes, and snippets.

View Kennethtruyers's full-sized avatar

Kenneth Truyers Kennethtruyers

View GitHub Profile
@Kennethtruyers
Kennethtruyers / app.html
Last active October 3, 2018 13:40 — forked from zewa666/app.html
Aurelia Store observale gist
<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>
{
"snapshots": [
{
"snapshot": "20180327_master_rebuild",
"repository": "azurerepo",
"uuid": "1WtgTaOBQ52ma0k25TYZAg",
"state": "SUCCESS",
"shards_stats": {
"initializing": 0,
"started": 0,
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);
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
}