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.Diagnostics; | |
using System.Linq; | |
using System.Threading; | |
using System.Threading.Tasks; | |
namespace ConsoleApplication6 | |
{ | |
class Program | |
{ |
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 class QuickSortDualPivot<T> | |
{ | |
private readonly IComparer<T> _comparer; | |
public QuickSortDualPivot(IComparer<T> comparer) | |
{ | |
_comparer = comparer; | |
} | |
public void Sort(T[] input) |
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
<Choose> | |
<When Condition=" $(TargetFrameworkVersion.Replace('v', '')) >= 4.6 "> | |
<ItemGroup> | |
<Reference Include="System.Numerics" /> | |
<Reference Include="System.Numerics.Vectors, Version=4.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL"> | |
<HintPath>..\packages\System.Numerics.Vectors.4.1.0\lib\net46\System.Numerics.Vectors.dll</HintPath> | |
<Private>True</Private> | |
</Reference> | |
</ItemGroup> | |
<PropertyGroup> |
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 static class WinApi | |
{ | |
[DllImport("shlwapi.dll", CharSet = CharSet.Unicode)] | |
public static extern int StrCmpLogicalW(string s1, string s2); | |
} | |
class AlphanumericComparer : IComparer<string> | |
{ | |
public int Compare(string x, string y) | |
{ |
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
[Serializable] | |
public delegate void TypedEventHandler<in TSender, in TEventArgs>( | |
TSender sender, | |
TEventArgs e | |
) where TEventArgs : EventArgs; |
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
USE DatabaseName --Enter the name of the database you want to reindex | |
DECLARE @TableName varchar(255) | |
DECLARE TableCursor CURSOR FOR |
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.Drawing; | |
using System.Drawing.Imaging; | |
namespace Helpers | |
{ | |
public static class BitmapHelper | |
{ | |
struct Pixel : IEquatable<Pixel> | |
{ |
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
([system.reflection.assembly]::loadfile("c:\MyDLL.dll")).FullName |
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 runLoad(controls) { | |
var deferreds = []; | |
for (var i = 0; i < controls.length; i++) { | |
deferreds.push($.Deferred()); | |
var container = $('#' + controls[i].ContainerId); | |
container.html(''); | |
container.load(controls[i].ActionUrl + '?nodeName={0}&nodeType={1}'.f(nodeName, nodeType), function (j) { | |
return function() { | |
deferreds[j].resolve(); | |
} |
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.Text; | |
using Microsoft.AspNet.Mvc.Rendering; | |
using Microsoft.AspNet.Razor.TagHelpers; | |
using Microsoft.Extensions.WebEncoders; | |
namespace WebInterface.TagHelpers | |
{ | |
[HtmlTargetElement("pager", Attributes = "total-items, items-per-page")] | |
public class PagerTagHelper : TagHelper |
OlderNewer