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.Diagnostics; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using System.Threading; | |
using System.Collections.Concurrent; | |
using System.Windows.Threading; |
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
internal sealed class BigIntegerBase64JsonConverter : JsonConverter<BigInteger> | |
{ | |
public override BigInteger Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) | |
{ | |
var bigIntegerBytes = reader.GetBytesFromBase64(); | |
return new BigInteger(bigIntegerBytes); | |
} | |
public override void Write(Utf8JsonWriter writer, BigInteger value, JsonSerializerOptions options) |
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 static class TaskExtensions | |
{ | |
private static Action<Task> IgnorerContinuationAction = IgnorerContinuation; | |
public static void Ignore(this Task task) | |
{ | |
if (task.IsCompleted) | |
{ | |
var exception = task.Exception; | |
} |
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
<?xml version="1.0" encoding="utf-16"?> | |
<?xml-stylesheet type="text/xsl" href="ActivityLog.xsl"?> | |
<activity> | |
<entry> | |
<record>1</record> | |
<time>2016/06/28 02:06:41.136</time> | |
<type>Information</type> | |
<source>VisualStudio</source> | |
<description>Microsoft Visual Studio 2015 version: 14.0.25420.1</description> | |
</entry> |
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
<template> | |
<div> | |
<ul class="collection"> | |
<li class="collection-item">Sent</li> | |
<li class="collection-item">Inbox<span md-badge="is-new: true;">3</span></li> | |
<li class="collection-item">Spam<span show.bind="spamCount > 0" class="yellow black-text" md-badge="is-new: true; caption.bind: spamCaption">${spamCount}</span></li> | |
</ul> | |
</div> | |
<div class="actions"> | |
<hr /> |
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
<template> | |
<div class="collapsible-open-close-events"> | |
<ul md-collapsible="on-open.call: collapsibleOpen($event); on-close.call: collapsibleClose($event)"> | |
<li ref="firstSection"> | |
<div class="collapsible-header"><i class="mdi-image-filter-drama"></i>First<span md-badge data-badge-caption="opens">${firstSection.openCount || 0}</span><span md-badge data-badge-caption="closes">${firstSection.closeCount || 0}</span></div> | |
<div class="collapsible-body"><p>Lorem ipsum dolor sit amet.</p></div> | |
</li> | |
<li ref="secondSection"> | |
<div class="collapsible-header"><i class="mdi-maps-place"></i>Second<span md-badge data-badge-caption="opens">${secondSection.openCount || 0}</span><span md-badge data-badge-caption="closes">${secondSection.closeCount || 0}</span></div> | |
<div class="collapsible-body"><p>Lorem ipsum dolor sit amet.</p></div> |
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 NewRelicIgnoreTransactionOwinModule | |
{ | |
private AppFunc _nextAppFunc; | |
public NewRelicIgnoreTransactionOwinModule(AppFunc nextAppFunc) | |
{ | |
_nextAppFunc = nextAppFunc; | |
} | |
public Task Invoke(IDictionary<string, object> environment) |
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.Threading; | |
using System.Threading.Tasks; | |
namespace HackedBrain.Utilities | |
{ | |
public sealed class ObjectPool<T> where T : class, new() | |
{ |
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
[141C:12A4][2016-04-22T15:48:46]i001: Burn v3.7.1224.0, Windows v6.2 (Build 9200: Service Pack 0), path: C:\Users\drub0\AppData\Local\Microsoft\Web Platform Installer\installers\WindowsAzureToolsOnlyVS2015BaseLocale.2.9\9D09A95A44450C409BC4F20B170635BAB9890151\MicrosoftAzureTools.VS140.exe, cmdline: '/quiet /norestart /log C:\Users\drub0\AppData\Local\Temp\WindowsAzureToolsVS2015_2_9_BaseLocale_Install.txt RUNDEVENVSETUP=0 -burn.unelevated BurnPipe.{9738F788-BE87-47BB-92CC-1939CA39524C} {DEE3715F-AECD-4961-B099-7B7AC3ABF13C} 9792' | |
[141C:12A4][2016-04-22T15:48:46]i000: Initializing string variable 'ProductShortName' to value 'Microsoft Azure Tools - v2.9' | |
[141C:12A4][2016-04-22T15:48:46]i000: Initializing string variable 'RUNDEVENVSETUP' to value '1' | |
[141C:12A4][2016-04-22T15:48:46]i000: Setting string variable 'WixBundleLog' to value 'C:\Users\drub0\AppData\Local\Temp\WindowsAzureToolsVS2015_2_9_BaseLocale_Install.txt' | |
[141C:12A4][2016-04-22T15:48:46]i000: Setting string variable 'WixBundleOriginalSource' to |
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
[diff] | |
tool = vsdiffmerge | |
[difftool] | |
prompt = true | |
[difftool "vsdiffmerge"] | |
cmd = \"C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\Common7\\IDE\\vsdiffmerge.exe\" \"$LOCAL\" \"$REMOTE\" //t | |
[difftool "vsdiffmerge"] | |
keepbackup = false | |
[merge] | |
tool = vsdiffmerge |
NewerOlder