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
class Program | |
{ | |
static void Main() | |
{ | |
Post post = null; | |
Blog blog = null; | |
UrlHelper helper = null; | |
CodeTimer.Initialize(); |
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.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Dynamic; | |
using System.Xml.Linq; | |
using System.Xml; | |
using System.Threading; | |
using System.Threading.Tasks; | |
using System.Diagnostics; |
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
public abstract class ReadFreeCache<TKey, TValue> | |
{ | |
protected ReadFreeCache() | |
: this(null) | |
{ } | |
protected ReadFreeCache(IEqualityComparer<TKey> comparer) | |
{ | |
this.m_storage = new Dictionary<TKey, TValue>(comparer); | |
} |
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.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using Microsoft.FSharp.Collections; | |
using System.Threading; | |
using System.Collections.Concurrent; | |
namespace CacheBenchmark | |
{ |
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
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Chat.aspx.cs" Inherits="CometServer.Chat" %> | |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head runat="server"> | |
<title>Chat</title> | |
</head> | |
<body> | |
<script language="javascript" type="text/javascript" src="Scripts/jquery-1.3.2.min.js"></script> |
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
static void Main() | |
{ | |
var languages = GetLanguages(); | |
var targetLanguages = languages.Select( | |
p => String.Format( | |
"{0}: {1}", | |
p.Value, | |
Translate("圣诞快乐", "zh-CN", p.Key))); |
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
#light | |
module XmlSerialization | |
open System | |
open System.IO | |
open System.Xml | |
open System.Xml.Linq | |
open System.Xml.Serialization | |
open System.Runtime.Serialization |
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
#light | |
module Blogging | |
open System | |
open System.IO | |
open System.Net | |
open System.Text.RegularExpressions | |
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
#light | |
module CnBlogsMonitoring.PostMonitor | |
open System | |
open System.Net | |
open System.IO | |
open System.Text.RegularExpressions | |
open System.IO.Compression |
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
namespace SimpleConsole | |
{ | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
class Program | |
{ | |
/// <summary> | |
/// The main entry point for the application. |