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
$.paginator = { | |
create: function(settings){ | |
settings = $.extend({ | |
items: ko.observableArray(), | |
pageSize: 10 | |
}, settings); | |
var vm = { |
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
# watch a file changes in the current directory, | |
# execute all tests when a file is changed or renamed | |
$watcher = New-Object System.IO.FileSystemWatcher | |
$watcher.Path = get-location | |
$watcher.IncludeSubdirectories = $true | |
$watcher.EnableRaisingEvents = $false | |
$watcher.NotifyFilter = [System.IO.NotifyFilters]::LastWrite -bor [System.IO.NotifyFilters]::FileName | |
while($TRUE){ |
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
test("when calling save users then post the list of users", function () { | |
//mock the ajax call | |
var postData; | |
$.mockjax({ | |
url: $.tellago.GetRootUrl() + "user/SaveUsersForServer", | |
response: function (settings) { | |
postData = settings.data; | |
} | |
}); |
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
[Authorize] | |
public class SomeController : Controller | |
{ | |
private readonly IQuerySomething querySomething; | |
public SomeController( | |
IQuerySomething1 querySomething, | |
IQuerySomething2 querySomething, | |
IQuerySomething3 querySomething) | |
{ |
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
Sorry, an error occurred while processing your request. | |
System.Data.Services.Client.DataServiceRequestException: An error occurred while processing this request. ---> System.Data.Services.Client.DataServiceClientException: An error occurred while processing this request. The document was understood, but it could not be processed. - The WSDL document contains links that could not be resolved. - There was an error downloading 'file:///C:/Windows/TEMP/CardholderMessages.xsd'. - Could not find file 'C:\Windows\TEMP\CardholderMessages.xsd'. - Could not find file 'C:\Windows\TEMP\CardholderMessages.xsd'. - Could not find file 'C:\Windows\TEMP\CardholderMessages.xsd'. System.InvalidOperationException at System.Web.Services.Discovery.DiscoveryClientProtocol.DiscoverAny(String url) at (Object , String ) at Tellago.ServiceModel.Governance.Resources.ServiceMetadataImporter.(String url) at Tellago.ServiceModel.Governance.Resources.ServiceMetadataImporter.GetMetadataImporterFromWSDL(String content) at Tellago.ServiceMod |
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 System; | |
using System.Diagnostics; | |
using System.IO; | |
using System.Linq; | |
using System.Net; | |
using System.Reactive.Linq; | |
using System.Web; | |
namespace LongPollingExample.Client | |
{ |
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
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
//var chunk = File.ReadAllText("sample.json"); | |
var serializer = new JsonSerializer(); | |
using (var streamReader = new StreamReader("sample.json")) | |
{ | |
var deserialized = serializer.Deserialize<List<object>>(new JsonTextReader(streamReader)); |
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
Use this within notepad++ / nppexec in order to preview a markup file as html | |
perl "C:\Markdown_1.0.1\Markdown.pl" "$(FULL_CURRENT_PATH)" | |
CON_SAVETO $(CURRENT_DIRECTORY)\$(NAME_PART).html | |
cmd /c start file://$(CURRENT_DIRECTORY)\$(NAME_PART).html |
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 System; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Linq; | |
using System.Net; | |
using System.Text; | |
namespace ConsoleApplication26 | |
{ | |
class Program |
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 class CustomerByName : Specification<Customer> | |
{ | |
private readonly string firstName; | |
public CustomerByName(string firstName) | |
{ | |
this.firstName = firstName; | |
} | |
public override Expression<Func<Customer, bool>> IsSatisfiedBy() |