This file contains hidden or 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
private static Action Act(Action action) | |
{ | |
return () => | |
{ | |
try | |
{ | |
action(); | |
} | |
catch (TargetInvocationException ex) |
This file contains hidden or 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
del /f /s /q node_modules > nul && rmdir /s /q node_modules && npm install && webpack --config webpack.config.vendor.js && webpack |
This file contains hidden or 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
NSwag command line tool for .NET 4.6+, toolchain v10.6.6324.28497 (NJsonSchema v8.33.6323.36213) (x64) | |
Visit http://NSwag.org for more information. | |
NSwag bin directory: C:\@App\NSwag | |
USAGE | |
===== | |
myapp.exe myCommand /myParameter:myValue /mySecondParameter:myValue | |
AVAILABLE COMMANDS |
This file contains hidden or 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.Text.RegularExpressions; | |
namespace Rextester | |
{ | |
public class Program | |
{ | |
private const int MB = 1024*1024; |
This file contains hidden or 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
git format-patch -1 --stdout > patch.patch | |
git am --keep-cr patch.patch |
This file contains hidden or 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
` from batch file | |
for /R packages %%f in (*.*) do "C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer\TF.exe" vc add %%f | |
` from command line | |
for /R packages %f in (*.*) do "C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer\TF.exe" vc add %f |
This file contains hidden or 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
(function(src){var s = document.createElement('script'); s.setAttribute('type', 'text/javascript'); s.setAttribute('src', src); document.head.appendChild(s); })('https://code.jquery.com/jquery-3.1.1.js'); |
This file contains hidden or 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 flatten = function(item) { var result = [item]; (items.Children || []).map(x => flatten(x)).forEach(x => result = result.concat(x)); return result; } |
This file contains hidden or 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
<PropertyGroup> | |
<NetFrameworkVersionNum>$(TargetFrameworkVersion.Replace("v", "").Replace(".", ""))</NetFrameworkVersionNum> | |
<!--Add an extra 0 if the version number is 40 or 45 so it can be compared to 401--> | |
<NetFrameworkVersionNum Condition="$(NetFrameworkVersionNum.Length) < 3">$(TargetFrameworkVersion.Replace("v", "").Replace(".", ""))0</NetFrameworkVersionNum> | |
<!--Don't define your own NET constants - this file will do it for you--> | |
<Error Condition=" $(DefineConstants.Contains('NET'))">Don't define your own NET constants</Error> | |
<!--Create a version to use with constants NET40, NET401 etc.--> | |
<NetFrameworkVersion Condition=" !$(DefineConstants.Contains(';NET')) ">$(TargetFrameworkVersion.Replace("v", "NET").Replace(".", ""))</NetFrameworkVersion> | |
<DefineConstants Condition=" !$(DefineConstants.Contains(';NET')) ">$(DefineConstants);$(NetFrameworkVersion)</DefineConstants> | |
<!--Define the OR_GREATER constants--> |
This file contains hidden or 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 override void Init() | |
{ | |
base.Init(); | |
BeginRequest -= OnBeginRequest; | |
BeginRequest += OnBeginRequest; | |
} | |
private void OnBeginRequest(object sender, EventArgs eventArgs) | |
{ |