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 allItems = [] | |
allItems.push("Buy ingredients for Crock Pot"); | |
allItems.push("Pick up chair at IKEA"); | |
allItems.push("Go see mom"); | |
class TodoList extends React.Component { | |
constructor(props){ | |
super(props); | |
} | |
getInitialState() { |
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
# Load your target version of the assembly | |
$newtonsoft = [System.Reflection.Assembly]::LoadFrom("$PSScriptRoot\packages\Newtonsoft.Json.8.0.3\lib\net45\Newtonsoft.Json.dll") | |
$onAssemblyResolveEventHandler = [System.ResolveEventHandler] { | |
param($sender, $e) | |
# You can make this condition more or less version specific as suits your requirements | |
if ($e.Name.StartsWith("Newtonsoft.Json")) { | |
return $newtonsoft | |
} | |
foreach($assembly in [System.AppDomain]::CurrentDomain.GetAssemblies()) { | |
if ($assembly.FullName -eq $e.Name) { |
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.Concurrent; | |
using System.Diagnostics; | |
using System.Diagnostics.Tracing; | |
using System.Globalization; | |
namespace HttpTracing | |
{ | |
public class HttpEventListener : EventListener | |
{ |
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.Generic; | |
using System.Linq; | |
using System.Web; | |
namespace MyWebsite.Helpers | |
{ | |
public class AllowMarkdownCorsModule : IHttpModule | |
{ | |
public void Init(HttpApplication context) |
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.Generic; | |
using System.Configuration; | |
using System.IO; | |
using System.Linq; | |
using System.Net.Http; | |
using System.Net.Http.Headers; | |
using System.Web; | |
using Microsoft.WindowsAzure.Storage; | |
using Microsoft.WindowsAzure.Storage.Blob; |
NewerOlder