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
for /F %i in ('appcmd list sites /text:NAME') DO @appcmd delete site %i |
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; | |
using System.Collections.Generic; | |
using System.Diagnostics; | |
using System.Runtime.CompilerServices; | |
using System.Linq; | |
public static class Tests | |
{ | |
private static readonly IDictionary<string, IList<long>> results = new Dictionary<string, IList<long>>(); |
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; | |
public class Class1 | |
{ | |
} | |
public class Test1 | |
{ | |
private const int iterations = 10000000; |
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
module Jekyll | |
class TagCloudTag < Liquid::Tag | |
safe = true | |
def initialize(tag_name, text, tokens) | |
super | |
end | |
def render(context) | |
html = "" |
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 data = new RouteValueDictionary(ViewData); | |
object action; | |
ViewData.ModelMetadata.AdditionalValues.TryGetValue("action", out action); | |
object controller; | |
ViewData.ModelMetadata.AdditionalValues.TryGetValue("controller", out controller); | |
object area; | |
ViewData.ModelMetadata.AdditionalValues.TryGetValue("area", out area); | |
if (!string.IsNullOrEmpty((string) area)) | |
{ |
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.Data.Entity; | |
using System.Data.Entity.ModelConfiguration; | |
using System.Data.Entity.ModelConfiguration.Configuration; | |
using System.Linq; | |
using System.Linq.Expressions; | |
using System.Reflection; | |
using DelegateDecompiler; |
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 Rectangle { | |
public Rectangle(decimal width, decimal height) { | |
Width = width; | |
Height = height; | |
} | |
public decimal Area() { | |
return Width * Height; | |
} | |
public decimal Width { get; private set; } | |
public decimal Height { get; private set; } |
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
======== | |
Array.ForEach: 341.4, Min: 338, Max: 346 | |
Array for i != Length; ++i: 355.5, Min: 352, Max: 365 | |
Array for ++i: 356.8, Min: 350, Max: 381 | |
Array for: 397.9, Min: 391, Max: 420 | |
Array for i != Length: 410.6, Min: 398, Max: 468 | |
Array for, cached length: 413.5, Min: 399, Max: 502 | |
Array foreach: 437.9, Min: 433, Max: 447 | |
List<T>.ForEach: 489.7, Min: 480, Max: 540 | |
IList<T> for, cached length: 590.5, Min: 582, Max: 619 |
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
-pascalCase+ | |
-nativeTypeSystem | |
-organizeUsings | |
-separateInterfaceConstants | |
-junitConversion | |
-maxColumns 400 | |
-namespaceMapping org.mozilla.javascript Rhino | |
-fullyQualify Cipher |
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
Compiling the source code.... | |
$mcs main.cs -out:demo.exe 2>&1 | |
main.cs(37,13): warning CS0219: The variable `ids1' is assigned but its value is never used | |
main.cs(40,13): warning CS0219: The variable `ids1' is assigned but its value is never used | |
Compilation succeeded - 2 warning(s) | |
Executing the program.... | |
$mono demo.exe | |
SelectMany method chain : 00:00:00.7027228 | |
SelectMany linq : 00:00:00.6438793 |