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; | |
using Hl7.Fhir.Introspection; | |
using Hl7.Fhir.Model; | |
using Hl7.Fhir.Serialization; | |
using Xunit; | |
namespace TestProject1 | |
{ | |
public class UnitTest1 |
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
/// <summary> | |
/// Allows a semaphore to release with the IDisposable pattern | |
/// </summary> | |
/// <remarks> | |
/// Solves an issue where using the pattern: | |
/// <code> | |
/// try { await sem.WaitAsync(cancellationToken); } | |
/// finally { sem.Release(); } | |
/// </code> | |
/// Can result in SemaphoreFullException if the token is cancelled and the |
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
<!DOCTYPE html> | |
<html class="en-us" lang="en"> | |
<head> | |
<title></title> | |
</head> | |
<body> | |
Crash!! | |
<h3><a id="download" name="download">Improved download experience</a></h3> |
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; | |
using System.Linq.Expressions; | |
namespace Extensions | |
{ | |
public class PropertyExtension | |
{ | |
public static string GetFor<T>(Expression<Func<T>> propertyNameLambda) | |
{ |
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
public class JsReferenceBundleOrderer : IBundleOrderer | |
{ | |
readonly Regex _referenceRegex = new Regex(@"///\s*<reference\s+path\s*=\s*""(?<filename>.*?)""\s*(?:/>|>)", RegexOptions.Compiled); | |
public IEnumerable<BundleFile> OrderFiles(BundleContext context, IEnumerable<BundleFile> files) | |
{ | |
var bundleFiles = files as List<BundleFile> ?? files.ToList(); | |
var adjacencyGraph = new AdjacencyGraph<string, Edge<string>>(); | |
var topSort = new TopologicalSortAlgorithm<string, Edge<string>>(adjacencyGraph); | |
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
var applicationPath = app.Server.MapPath("~/"); | |
var contentBundleBasePath = app.Server.MapPath("~/Content/bundles"); | |
bundles.CreateRecursiveBundles( | |
contentBundleBasePath, | |
applicationPath, | |
contentBundleBasePath); | |
bundles.CreateRecursiveBundles(app.Server.MapPath("~/Views"), applicationPath, applicationPath); | |
bundles.CreateRecursiveBundles(app.Server.MapPath("~/Areas"), applicationPath, applicationPath); |
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.Collections; | |
using System.Collections.Generic; | |
using System.Collections.ObjectModel; | |
using System.Data.Entity; | |
using System.Data.Entity.Infrastructure; | |
using System.Linq; | |
using System.Linq.Expressions; | |
using System.Reflection; |
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
define(['./composition', './system', './viewModel'], | |
function (composition, system, viewModel) { | |
var contexts = {}, | |
modalCount = 0; | |
function ensureModalInstance(objOrModuleId) { | |
return system.defer(function (dfd) { | |
if (typeof objOrModuleId == "string") { | |
system.acquire(objOrModuleId).then(function (module) { |
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
public class SetListItemDataTemplateState | |
{ | |
public void SelectionChanged(dynamic sender, dynamic args) | |
{ | |
var container = sender.ItemContainerGenerator; | |
foreach (var item in args.AddedItems) | |
{ | |
var listItem = container.ContainerFromItem(item); | |
var layout = FrameworkElementExtensions.FindDescendantByName(listItem, "RootLayout"); | |
ExtendedVisualStateManager.GoToElementState(layout, "ToSelected", true); |
NewerOlder