HEY: I've turned this into a blog post, which is a little more in depth.
🚨 https://eev.ee/blog/2016/06/04/converting-a-git-repo-from-tabs-to-spaces/ 🚨
this: | |
@helper CustomTag(InnerTemplate inner) { | |
<div class="this"> | |
<div class="that"> | |
@inner | |
</div> | |
</div> | |
} |
public class DatabaseDeleter | |
{ | |
private readonly ISessionFactory _configuration; | |
private static readonly string[] _ignoredTables = new[] { "sysdiagrams", /* DB Migration tables too */ }; | |
private static string[] _tablesToDelete; | |
private static string _deleteSql; | |
private static object _lockObj = new object(); | |
private static bool _initialized; | |
public DatabaseDeleter(ISessionFactory sessionSource) |
static string linebreaks_wp(string body) | |
{ | |
if (body.Trim() == "") | |
return ""; | |
//Ensure all newlines are simply \n and that we end with a \n | |
body = body.Replace("\r\n", "\n") | |
.Replace("\r", "\n"); | |
body = body + "\n"; |
#requires -version 2.0 | |
[CmdletBinding()] | |
param ( | |
[parameter(Mandatory=$true)] | |
[ValidatePattern('\.rptproj$')] | |
[ValidateScript({ Test-Path -PathType Leaf -Path $_ })] | |
[string] | |
$Path, | |
[parameter( |
[assembly: WithBus] |
using System; | |
using System.Collections.Generic; | |
using System.Net.Http; | |
using System.Web.Http; | |
using System.Web.Http.Controllers; | |
using System.Web.Http.Hosting; | |
using System.Web.Http.Routing; | |
using Newtonsoft.Json.Converters; | |
using Newtonsoft.Json.Serialization; | |
using NSubstitute; |
HEY: I've turned this into a blog post, which is a little more in depth.
🚨 https://eev.ee/blog/2016/06/04/converting-a-git-repo-from-tabs-to-spaces/ 🚨
public class FeatureViewLocationRazorViewEngine : RazorViewEngine | |
{ | |
public FeatureViewLocationRazorViewEngine() | |
{ | |
ViewLocationFormats = new[] | |
{ | |
"~/Features/{1}/{0}.cshtml", | |
"~/Features/{1}/{0}.vbhtml", | |
"~/Features/Shared/{0}.cshtml", | |
"~/Features/Shared/{0}.vbhtml", |
using System; | |
using System.Linq.Expressions; | |
using System.Web.Http; | |
using System.Web.Http.Routing; | |
using Ploeh.Hyprlinkr; | |
public static class UrlHelperExtensions | |
{ | |
public static Uri Link<T, TResult>(this UrlHelper helper, Expression<Func<T, TResult>> expression) | |
where T : ApiController |