Using the Doc
filter in Chrome seems to merge entries during redirects, losing info. Instead, use the Filter input.
- Chrome:
mime-type: text/html
- FireFox:
cause: document
// Original source: https://github.com/Faithlife/FaithlifeUtility/blob/master/src/Faithlife.Utility/GuidUtility.cs | |
using System; | |
using System.Linq; | |
using System.Security.Cryptography; | |
using System.Text; | |
namespace Faithlife.Utility | |
{ | |
/// <summary> |
#if UNITY_EDITOR | |
using System; | |
using System.Collections.Generic; | |
using System.Globalization; | |
using System.Text; | |
using UnityEditor; | |
using UnityEditor.Compilation; | |
using UnityEngine; | |
/// <summary> |
using System; | |
using System.Net; | |
using System.Net.Sockets; | |
namespace MyNamespace | |
{ | |
/// <summary> | |
/// Extension methods on <see cref="System.Net.IPAddress"/>. | |
/// </summary> | |
public static class IPAddressExtensions |
using System.Windows; | |
using System.Windows.Controls; | |
using JetBrains.Annotations; | |
namespace Foo | |
{ | |
public class MarginSetter | |
{ | |
private static Thickness GetLastItemMargin(Panel obj) | |
{ |
#nullable enable | |
using System; | |
using Microsoft.AspNetCore.Http; | |
using Microsoft.AspNetCore.Mvc; | |
using Microsoft.AspNetCore.Mvc.Filters; | |
namespace Digma.Api.Common.Telemetry | |
{ | |
/// <summary> | |
/// Action filter to construct a simpler telemetry name from the route name or the route template. |
<?xml version="1.0" encoding="utf-16"?> | |
<!-- | |
Inspired by: https://collinmbarrett.com/stylecop-ordering-resharper/ | |
Source: https://gist.github.com/angularsen/98bfab4d5e887ab37143214fad1fadbd | |
Modifications: | |
- Sort by Name after all other sorting criteria | |
--> | |
<Patterns xmlns="urn:schemas-jetbrains-com:member-reordering-patterns"> | |
<TypePattern DisplayName="StyleCop Classes, Interfaces, & Structs" RemoveRegions="All"> | |
<TypePattern.Match> |
### Keybase proof | |
I hereby claim: | |
* I am angularsen on github. | |
* I am angularsen (https://keybase.io/angularsen) on keybase. | |
* I have a public key ASBk63TsyBng27LKfVncxiMbyB326LmFLu2_IjffuoOFDAo | |
To claim this, I am signing this object: |
# Disable EOL conversions by default | |
* -text | |
## Unity ## | |
*.cs diff=csharp text | |
*.cginc text | |
*.shader text | |
*.mat merge=unityyamlmerge |
// Call me on startup, such as in Application_Start() of Global.asax.cs | |
private static void CreateOrMigrateDatabase() | |
{ | |
// Disable automatic migrations as it prevents us from deploying DB changes without breaking the production web instance. | |
Database.SetInitializer<ApplicationDbContext>(null); | |
var migrator = new DbMigrator(new Configuration()); | |
// Order by migration names to get oldest first, such as 201403221133523_AddSetting | |
List<string> pendingMigrations = migrator.GetPendingMigrations().OrderBy(x => x).ToList(); |