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 Castle.Core.Logging; | |
using NHibernate; | |
using NHibernate.Cfg; | |
using NHibernate.Tool.hbm2ddl; | |
namespace Lucilla.Framework.Core.Data |
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
<div class="field-row"> | |
<div class="field-box"> | |
<%=Html.AutoCompleteFor( | |
x => x.Customer.CompanyName, | |
x => x.Customer.Id, | |
Url.Action("Autocomplete", "Customer") | |
) %><br /> | |
</div> | |
</div> |
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
... | |
protected void Application_Start() | |
{ | |
... | |
// todo: add windsor + autodiscovery by convention | |
ModelMetadataProviders.Current = new LucillaMetadataProvider(); | |
ModelBinders.Binders.DefaultBinder = new LucillaModelBinder(); | |
... | |
} | |
... |
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; | |
using System.Runtime.Remoting.Messaging; | |
using System.Web; | |
using Castle.Facilities.NHibernateIntegration.SessionStores; | |
namespace Lucilla.Framework.Core.Data.NHFacility | |
{ | |
internal interface ISessionStoreContextAdapter | |
{ |
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
// OperatorTest.cpp : Defines the entry point for the console application. | |
// | |
#include "stdafx.h" | |
#include <conio.h> | |
class Base | |
{ | |
public: | |
int _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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading; | |
using NUnit.Framework; | |
using Prxm.ManPack.Monitor; | |
using SharpTestsEx; | |
namespace Prxm.ManPack.ServicesTests.MonitorTests |
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
(function (){ | |
var UpdateContext = window.UpdateContext = window.UpdateContext || {}; | |
var isWinJS = typeof(MSApp) != 'undefined'; | |
if(isWinJS){ | |
UpdateContext.Execute = function(cb){ | |
MSApp.execUnsafeLocalFunction(cb); | |
}; | |
}else{ |
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 CALL_TIMEOUT = 4000; | |
function expectAsync(promise, expectations) { | |
var completed = false; | |
runs(function () { | |
promise.call().always(function () { | |
completed = true; | |
}) | |
}); |
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
// From http://baagoe.com/en/RandomMusings/javascript/ | |
function Alea() { | |
return (function(args) { | |
// Johannes Baagøe <baagoe@baagoe.com>, 2010 | |
var s0 = 0; | |
var s1 = 0; | |
var s2 = 0; | |
var c = 1; | |
if (args.length == 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
[Test, Explicit] | |
public void fasterflect_performance_test() | |
{ | |
var handler = new SampleEventHandler(); | |
var @event = new SampleEvent(); | |
int iterations = 10000000; | |
// fasterflect | |
{ | |
handler.Counter = 0; |
OlderNewer