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
SRV*C:\symbols\dbg*http://referencesource.microsoft.com/symbols;SRV*C:\symbols\dbg*https://nuget.smbsrc.net;SRV*C:\symbols\dbg*http://msdl.microsoft.com/download/symbols |
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 DcmPixelData; | |
using FellowOakDicom; | |
using FellowOakDicom.Imaging; | |
using FellowOakDicom.Imaging.NativeCodec; | |
using FellowOakDicom.IO.Buffer; | |
using SixLabors.Fonts; | |
using SixLabors.ImageSharp; | |
using SixLabors.ImageSharp.Processing; | |
using SixLabors.ImageSharp.Drawing.Processing; | |
using SixLabors.ImageSharp.PixelFormats; |
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.IO; | |
using System.Net; | |
using System.Net.Sockets; | |
using System.Threading.Tasks; | |
using BenchmarkDotNet.Attributes; | |
namespace Gists | |
{ | |
[MemoryDiagnoser] |
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
CREATE TABLE MiniProfilers | |
( | |
RowId integer not null identity constraint PK_MiniProfilers primary key clustered, -- Need a clustered primary key for SQL Azure | |
Id uniqueidentifier not null, -- don't cluster on a guid | |
RootTimingId uniqueidentifier null, | |
Name nvarchar(200) null, | |
Started datetime not null, | |
DurationMilliseconds decimal(15,1) not null, | |
[User] nvarchar(100) null, | |
HasUserViewed bit not null, |
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 FluentAssertions; | |
using Microsoft.Extensions.Logging; | |
using System; | |
using System.Collections.Concurrent; | |
using System.Collections.Generic; | |
using System.Globalization; | |
using System.Linq; | |
using System.Threading; | |
using System.Threading.Channels; | |
using System.Threading.Tasks; |
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 LogConfigOnStartup : IHostedService | |
{ | |
private readonly ILogger<LogConfigOnStartup> _logger; | |
private readonly IConfigurationRoot _configuration; | |
public LogConfigOnStartup(ILogger<LogConfigOnStartup> logger, IConfiguration configuration) | |
{ | |
_logger = logger ?? throw new ArgumentNullException(nameof(logger)); | |
_configuration = configuration as IConfigurationRoot ?? throw new ArgumentNullException(nameof(configuration)); | |
} |
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
import {Observable} from 'rxjs/Observable'; | |
const isProduction: boolean = process && process.env && process.env.NODE_ENV === "production"; | |
const debug = function <T>(this: Observable<T>, name: string) { | |
if (isProduction) | |
return this; | |
return this | |
.do({ | |
next: (value: T) => { |
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.IO; | |
using System.Linq; | |
using System.Reflection; | |
using System.Text; | |
namespace Wordlist { | |
public class Program { |
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 DateTime implements Cloneable, Comparable<DateTime>,Parcelable { | |
public static DateTime today() { return now().withTimeAtStartOfDay(); } | |
public static DateTime now() { return new DateTime(Calendar.getInstance()); } | |
private final Calendar calendar; | |
@Override | |
public int compareTo(@NonNull DateTime another) { | |
return calendar.compareTo(another.calendar); | |
} |
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 SmartBox { | |
private Map<Class, Class> bindings; | |
public SmartBox() { | |
this.bindings = new HashMap<>(); | |
} | |
/** | |
* Binds {@TService} class to {@TInstance} | |
* |
NewerOlder