This file contains 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; | |
namespace MyExtensions | |
{ | |
public static class DateTimeExtensions | |
{ | |
public const long EpochTicks = 621355968000000000; | |
public const long TicksPeriod = 10000000; | |
public const long TicksPeriodMs = 10000; |
This file contains 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 Owin; | |
using System.Web.Http; | |
using System.Web.Http.Batch; | |
namespace BatchRequestDemo | |
{ | |
public class Startup | |
{ | |
// This code configures Web API. The Startup class is specified as a type | |
// parameter in the WebApp.Start method. |
This file contains 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.Text.RegularExpressions; | |
namespace RegexOptims | |
{ | |
public static class RegexComparer | |
{ | |
private const string REGEX_PATTERN = @"^[\w\d]+$"; |
This file contains 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 Ideafixxxer.Generics; | |
using System; | |
using System.Diagnostics; | |
using System.Text; | |
namespace EnumBenchmarks | |
{ | |
public enum MyEnum | |
{ | |
Undefined = 0, |
This file contains 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 page = require('webpage').create(), | |
system = require('system'), | |
t, address; | |
if (system.args.length === 1) { | |
console.log('Usage: loadspeedv2.js <some URL>'); | |
phantom.exit(1); | |
} else { | |
t = Date.now(); | |
address = system.args[1]; |
This file contains 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
[assembly: WebActivator.PreApplicationStartMethod(typeof(MyApp.App_Start.NinjectWebCommon), "Start")] | |
[assembly: WebActivator.ApplicationShutdownMethodAttribute(typeof(MyApp.App_Start.NinjectWebCommon), "Stop")] | |
// please add a reference to NInject.MVC3 | |
namespace MyApp.App_Start | |
{ | |
using System; | |
using System.Web; | |
using System.Web.Mvc; |
NewerOlder