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
# Collect top-level YAML files under plays/ folder | |
# e.g. plays/upgrade_ansible_tower/upgrade_ansible_tower.yml | |
# These should only be Ansible playbook files | |
# i.e. store includes in child includes/ dir | |
playbooks := $(wildcard plays/*/*.yml) | |
# Check YAML syntax using ansible-playbook | |
syntax: $(playbooks) | |
@GREEN='\033[0;32m'; \ | |
NC='\033[0m'; \ |
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
<# | |
.SYNOPSIS | |
Downloads a blob item from TFS Git LFS | |
.DESCRIPTION | |
This script performs a 4-step process to download a LFS-hosted file from TFS. It fetches the item metadata | |
then downloads the LFS pointer. After it validates the pointer file, it preps a LFS batch download and finally | |
downloads the file to the specified OutFile. You can use this cmdlet in a pipeline as it passes a Get-Item call | |
at the end. | |
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
<# | |
.SYNOPSIS | |
Generates an HTML5 offline app cache manifest file | |
.DESCRIPTION | |
Generates an offline app cache manifest file according to file paths specified | |
and outputs with MD5 checksums so manifest only changes when dependent files change. |
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 Website { | |
/// <summary> | |
/// Configures Cassette IoC | |
/// </summary> | |
public class CassetteContainerConfiguration : IConfiguration<TinyIoCContainer> | |
{ | |
public void Configure(TinyIoCContainer container) | |
{ |
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
/* | |
Microsoft Limited Permissive License (Ms-LPL) | |
This license governs use of the accompanying software. If you use the software, you accept this license. If you do not accept the license, do not use the software. | |
1. Definitions | |
The terms “reproduce,” “reproduction,” “derivative works,” and “distribution” have the same meaning here as under U.S. copyright law. | |
A “contribution” is the original software, or any additions or changes to the software. | |
A “contributor” is any person that distributes its contribution under this license. |
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 class ConfigSecretsProvider : ISecretsProvider | |
{ | |
private readonly NameValueCollection _secretCollection; | |
public ConfigSecretsProvider() { | |
_secretCollection = ConfigurationManager.GetSection("appSecrets") as NameValueCollection; | |
} | |
public string GetSecret(string key) { | |
return Environment.GetEnvironmentVariable(key) ?? _secretCollection[key]; |
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
var rootElementJson = { | |
root: { | |
name: "Foo", | |
person: true | |
} | |
}; | |
var removeRootElement = function (obj) { | |
var numKeys = 0, | |
rootKey; |
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
// | |
// Observable CSS Class Binding | |
// | |
// See Fiddle for usage: http://jsfiddle.net/kamranayub/3ahUA/ | |
// | |
ko.bindingHandlers['class'] = { | |
update: function (element, valueAccessor) { | |
var currentValue = ko.utils.unwrapObservable(valueAccessor()), | |
prevValue = element['__ko__previousClassValue__'], | |
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
<VisualState x:Name="NextTransition"> | |
<Storyboard> | |
<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="CurrentContentPresentationSite" Storyboard.TargetProperty="(UIElement.Opacity)"> | |
<EasingDoubleKeyFrame KeyTime="0" Value="0"/> | |
<EasingDoubleKeyFrame KeyTime="0:0:0.5" Value="1"> | |
<EasingDoubleKeyFrame.EasingFunction> | |
<ExponentialEase EasingMode="EaseOut" Exponent="6"/> | |
</EasingDoubleKeyFrame.EasingFunction> | |
</EasingDoubleKeyFrame> | |
</DoubleAnimationUsingKeyFrames> |