This file contains hidden or 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
| cd \inetpub\adminscripts | |
| cscript adsutil.vbs set w3svc/MaxConnections 40 | |
| iisreset |
This file contains hidden or 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 (var db = new BloggingContext()) | |
| { | |
| // Create a SQL command to execute the sproc | |
| var cmd = db.Database.Connection.CreateCommand(); | |
| cmd.CommandText = "[dbo].[uspCustomerAndCompanySearch] @Query"; | |
| // Add Parameters to cmd here | |
| cmd.Parameters.Add(new SqlParameter("query", response.Query)); | |
| try |
This file contains hidden or 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 Module BundleConfig | |
| ''' <summary> | |
| ''' Registers the bundles. | |
| ''' </summary> | |
| ''' <param name="bundles">The bundles.</param> | |
| ''' <remarks></remarks> | |
| Public Sub RegisterBundles(ByVal bundles As BundleCollection) | |
This file contains hidden or 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
| <Project ToolsVersion="4.0" DefaultTarget="RunTests" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |
| <PropertyGroup> | |
| <results_file>./TestResults/results.trx</results_file> | |
| </PropertyGroup> | |
| <PropertyGroup> | |
| <MsTestExePath Condition="'$(MsTestExePath)'==''">C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\MSTest.exe</MsTestExePath> | |
| </PropertyGroup> |
This file contains hidden or 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
| <div id="loadingWidget" loading-widget> | |
| <div class="loadingContent"> | |
| <p> | |
| Loading....Loading....Loading....Loading....Loading....Loading....Loading....Loading....Loading....Loading....Loading....Loading....Loading....Loading....Loading....Loading....Loading....Loading.... | |
| </p> | |
| </div> | |
| </div> |
This file contains hidden or 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 common = angular.module('common', []); | |
| /** allows numbers to be displayed from a model value with the correct decimal rounding */ | |
| common.directive('inputCurrency', function ($filter, $locale) { | |
| return { | |
| terminal: true, | |
| restrict: 'A', | |
| require: '?ngModel', | |
| link: function (scope, element, attrs, ngModel) { |
This file contains hidden or 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
| angular.module('dateInterceptor',[]) | |
| .config(['$httpProvider', function ($httpProvider) { | |
| var regexIso8601 = /^(\d{4}|\+\d{6})(?:-(\d{2})(?:-(\d{2})(?:T(\d{2}):(\d{2}):(\d{2})\.(\d{1,})(Z|([\-+])(\d{2}):(\d{2}))?)?)?)?$/; | |
| // function to parse through response json and replace ISO8601 date strings with date objects | |
| var convertDateStringsToDates = function(input) { | |
| // Ignore things that aren't objects. | |
| if (typeof input !== "object") return input; |
This file contains hidden or 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
| select 'exec master..xp_cmdshell' | |
| + ' ''' | |
| + 'bcp' | |
| + ' "' + TABLE_CATALOG + '.' + TABLE_SCHEMA + '.[' + TABLE_NAME + ']"' | |
| + ' out' | |
| + ' "C:\temp\' | |
| + TABLE_CATALOG + '.' + TABLE_SCHEMA + '.' + TABLE_NAME + '.csv"' | |
| + ' -c -t,' | |
| + ' -T' | |
| + ' -S' + @@servername |
This file contains hidden or 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
| @inherits Umbraco.Web.Mvc.UmbracoTemplatePage | |
| @using System.Linq; | |
| @{ | |
| Layout = null; | |
| Response.ContentType = "text/xml"; | |
| }<?xml version='1.0' encoding='UTF-8' ?> | |
| <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" | |
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
| xsi:schemalocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd"> | |
| @ListChildNodes(Umbraco.TypedContent(UmbracoContext.Current.PageId).AncestorOrSelf(1)) |
This file contains hidden or 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 ICommandHandler<TCommand> where TCommand : ICommand | |
| { | |
| void Handle(TCommand command); | |
| } | |
| public interface ICommand | |
| { | |
| } |
OlderNewer