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
private void LoadRecentPlayers() | |
{ | |
var repo = ObjectFactory.Get<IPlayerRepository>(); | |
try | |
{ | |
var players = repo.RecentPlayers(100); | |
FinishLoad(players, button1); | |
} | |
catch (Exception ex) | |
{ |
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
require 'services/tinyurl' | |
require 'services/bitly' | |
require 'services/isgd' | |
require 'services/longurl' | |
services = | |
{ | |
:tinyurl => TinyUrl.new, | |
:bitly => BitLy.new, | |
:isgd => IsGd.new, |
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 static class BoolExtensions | |
{ | |
public static void Duh(this bool value) | |
{ | |
Assert.IsTrue(value); | |
} | |
} |
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
*\bin* *\obj* *.suo *.user *.bak **.ReSharper** **\_ReSharper.** StyleCop.Cache *\TestResults* |
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 Elmah; | |
using System.Collections; | |
namespace ElmahTest | |
{ | |
public class CustomSQLLog : Elmah.ErrorLog | |
{ | |
private readonly SqlErrorLog errorLog; | |
public CustomSQLLog(IDictionary config) : this() | |
{ | |
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
<elmah> | |
<errorLog type="ElmahTest.CustomSQLLog, ElmahTest"/> | |
</elmah> |
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.Web; | |
using System.ServiceModel.Activation; | |
using System.ServiceModel; | |
namespace CMWeb.Common | |
{ | |
public class CMServiceHostFactory : ServiceHostFactory |
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
<%@ ServiceHost Language="C#" Debug="true" | |
Service="CMWeb.Services.SkillRatingTypes" | |
CodeBehind="SkillRatingTypes.svc.cs" | |
Factory="CMWeb.Common.CMServiceHostFactory" | |
%> |
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
require 'rubygems' | |
require 'bishop' | |
require 'twitter' | |
class TwitterClassifier | |
@@spam_threshold = 0.3 | |
def initialize(knowledge_file=nil) | |
@bishop = Bishop::Bayes.new |
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
xml.instruct! :xml, :version => "1.0" | |
xml.rss :version => "2.0" do | |
xml.channel do | |
xml.title "light code" | |
xml.description "light code posts" | |
xml.link formatted_post_url(:rss) | |
for post in @posts | |
xml.item do | |
xml.title post.title |
OlderNewer