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
{{view App.SimpleTableView rowsBinding="results" columnsBinding="columns"}} |
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
Ember.Handlebars.registerBoundHelper('timeSince', function (value) { | |
var when = moment(value).fromNow(); | |
return new Handlebars.SafeString('<span data-livestamp="' + value + '">' + when + '</span>'); | |
}); |
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 SignalJsonSerializer : IJsonSerializer | |
{ | |
public class DefaultingJsonContractResolver : IContractResolver | |
{ | |
private readonly Assembly _assembly; | |
private readonly IContractResolver _camelCaseContractResolver; | |
private readonly IContractResolver _defaultContractSerializer; | |
public DefaultingJsonContractResolver() | |
{ |
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
[TestFixture] | |
public class Example | |
{ | |
public class Bus | |
{ | |
public void SubscribeAsync<T>(string subscriptionId, Func<T, Task> onMessage) { } | |
} | |
public static MethodInfo GetMethod<T>(Expression<Action<T>> methodSelector) | |
{ |
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 EmberPipelineModifier : IBundlePipelineModifier<HtmlTemplateBundle> | |
{ | |
public IBundlePipeline<HtmlTemplateBundle> Modify(IBundlePipeline<HtmlTemplateBundle> pipeline) | |
{ | |
pipeline.Add(new EmberCompatabilityProcessor()); | |
return pipeline; | |
} | |
} |
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 dataSource = new SqlServerDataSource | |
{ | |
ConnectionString = "server=server;database=database;User Id=id; Password=password;" | |
}; | |
var procedure = new StoredProcedure("SomeAwesomeProcedure"); | |
procedure.AddInput("Input1", "bar"); | |
procedure.AddInput("Input2", "baz"); | |
dataSource.Execute(procedure, t => |
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
function InstallService ($p,$s,$n,$e,$v) { | |
$stop = "$p\$s stop --environment=$e" | |
$uninstall = "$p\$s uninstall --environment=$e" | |
$install = "$p\$s install --environment=$e" | |
$start = "$p\$s start --environment=$e" | |
$serviceName = "$n$" + $e | |
$service = Get-WmiObject -Class Win32_Service -Filter "Name='$serviceName'" |
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 Castle.DynamicProxy; | |
using NUnit.Framework; | |
namespace ProxyMagic | |
{ | |
public class DataObject | |
{ | |
public string FirstName { get; set; } | |
public string LastName { get; set; } |
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.Collections.Concurrent; | |
using System.Linq; | |
using System.Threading.Tasks; | |
namespace Chinchilla | |
{ | |
public class TaskDeliveryStrategy : DeliveryStrategy | |
{ | |
private readonly ConcurrentDictionary<int, TaskWorker> workers; |
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
private string FixExtractContents(string contents) | |
{ | |
if (contents.StartsWith("<specifiedStressTest>") && !contents.EndsWith("</specifiedStressTest>")) | |
{ | |
return contents + "</specifiedStressTest>"; | |
} | |
return contents; | |
} |