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
using System; | |
using System.Linq.Expressions; | |
using System.Text.RegularExpressions; | |
using System.Web.Mvc; | |
using System.Web.Mvc.Html; | |
public static class ValidationExtensions | |
{ | |
public static MvcHtmlString ValidationMessageLabelFor<TModel, TProperty>(this HtmlHelper<TModel> html, Expression<Func<TModel, TProperty>> expression, string errorClass = "error") | |
{ |
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
// Developer: Cory Fowler | |
// Company: SyntaxC4 Development Services | |
// Description: Adds Type Safety and Saves Memory over Class | |
namespace WageCalculator.Abstractions | |
{ | |
public struct OvertimeRates | |
{ | |
public const float Regular = 1.0f; | |
public const float Time_And_A_Half = 1.5f; |
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 Net.SyntaxC4.Blog.Examples | |
{ | |
using System; | |
using System.Linq.Expressions; | |
using System.Web.Mvc; | |
using System.Web.Mvc.Html; | |
using System.Web.Routing; | |
public static class HtmlExtensions | |
{ |
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
@echo off | |
IF "%PROCESSOR_ARCHITECTURE%" == "x86" GOTO End | |
IF "%PROCESSOR_ARCHITECTURE%" == "AMD64" GOTO x64 | |
:x64 | |
sc config wuauserv start= demand | |
GOTO End | |
: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
#Gracefully Add the Windows Azure Service Management SnapIn | |
Add-PSSnapin -Name AzureManagementToolsSnapIn -ErrorAction SilentlyContinue | |
#Collect Required Variables | |
$serviceName = $args[0] | |
$slot = $args[1] | |
$subscriptionId = $args[2] | |
$certThumb = $args[3] | |
$package = $args[4] | |
$label = $args[5] |
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
param([string]$DecryptionToken, [string]$DecryptionKey, [string]$ValidationToken, [string]$ValidationKey) | |
Import-Module WebAdministration | |
Foreach ($site in Get-Website IIS:\Sites) { | |
$curSite = $site.Name.ToString() | |
Set-WebConfigurationProperty /system.web/machinekey -PSPath "IIS:\Sites\$curSite" -Name Decryption -Value $DecryptionToken | |
Set-WebConfigurationProperty /system.web/machinekey -PSPath "IIS:\Sites\$curSite" -Name DecryptionKey -Value $DecryptionKey |
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
<DiagnosticMonitorConfiguration xmlns="http://schemas.microsoft.com/ServiceHosting/2010/10/DiagnosticsConfiguration" | |
configurationChangePollInterval="PT1M" | |
overallQuotaInMB="4096"> | |
<DiagnosticInfrastructureLogs bufferQuotaInMB="1024" | |
scheduledTransferLogLevelFilter="Verbose" | |
scheduledTransferPeriod="PT1M" /> | |
<Logs bufferQuotaInMB="1024" | |
scheduledTransferLogLevelFilter="Verbose" |
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
[PHP_WINCACHE] | |
extension=php_wincache.dll |
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
{ | |
"require": { | |
"microsoft/windowsazure": "*" | |
}, | |
"repositories": [ | |
{ | |
"type": "pear", | |
"url": "http://pear.php.net" | |
} | |
], |
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
<?php | |
echo phpinfo(); | |
?> |