View ConfigureAppServiceApplicationLogToBlobStorage.ps1
param(
[string]$resourceGroup,
[string]$storageAccountName
[string]$webAppName
)
Import-Module AzureRM.Storage
$sa = Get-AzureRmStorageAccount -ResourceGroupName $resourceGroup -Name $storageAccountName
View LoremIpsumKeyVault.json
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"resources": [
{
"type": "Microsoft.KeyVault/vaults",
"name": "LoremVault",
"apiVersion": "2015-06-01",
"location": "[resourceGroup().location]",
"properties": {
View LoremIpsumWebApp.json
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"resources": [
{
"type": "Microsoft.Web/serverfarms",
"kind": "app",
"name": "LoremIpsumAppService",
"sku": {
"name": "B1"
View Format-HtmlValidityOutput.ps1
<#
.SYNOPSIS
Formats the output of the Test-HtmlValidity script
.DESCRIPTION
Formats the output of the Test-HtmlValidity script. Also support grouped input on the URL property.
.NOTES
Author: Michaël Hompus
License: This work is licensed under a Creative Commons Attribution-ShareAlike 2.5 Generic License.
.PARAMETER Messages
One or more output messages from the HTML validity PowerShell Script.
View Test-HtmlValidity.ps1
<#
.SYNOPSIS
Validates one or more URLs against the W3C HTML validation service
.DESCRIPTION
Validates one or more URLs against the W3C HTML validation service. Returns info, warning and error messages. You can also switch on messages for valid pages.
.NOTES
Author: Michaël Hompus
License: This work is licensed under a Creative Commons Attribution-ShareAlike 2.5 Generic License.
.PARAMETER Urls
One or more URLs to check for HTML validity.
View ConvertFrom-SiteMap.ps1
<#
.SYNOPSIS
Returns all URLs and optional metadata from an XML Sitemap
.DESCRIPTION
Downloads an XML Sitemap and parses the content to retrieve all the information. If the file contains Sitemap Index entries those links will be followed as well.
.NOTES
Author: Michaël Hompus
License: This work is licensed under a Creative Commons Attribution-ShareAlike 2.5 Generic License.
.PARAMETER Url
The URL for a XML Sitemap file
View PullDownToRefreshPanel1.cs
private void PullDownToRefreshPanel_LayoutUpdated(object sender, EventArgs e)
{
if (this.targetScrollViewer == null)
{
this.targetScrollViewer = FindVisualElement<ScrollViewer>(VisualTreeHelper.GetParent(this));
if (this.targetScrollViewer != null)
{
this.LayoutUpdated -= PullDownToRefreshPanel_LayoutUpdated;
// *snip*