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
Mapper.CreateMap<TestClass, TestClassViewModel>() | |
.ForMember(dest => dest.Bar, opt => opt.MapFrom(src => src.Foo)); | |
var map = new Mapper<TestClass, TestClassViewModel>(Mapper.Engine); |
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
//javascript namespacing | |
//start class | |
var CallDirector_application = {}; | |
(function () { | |
//private members | |
var $selectedMenuAction; | |
//public memeber |
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
/// <reference path="..\jquery-1.6.1-vsdoc.js"/> | |
/// <reference path="..\Calldirector.base.js"/> | |
//javascript namespacing | |
var CallDirector_application = {}; | |
(function () { | |
//same as private | |
var messageWindow; |
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
<script type="text/template" id="item-template"> | |
<div class="todo <%= done ? 'done' : '' %>"> | |
<input class="check" type="checkbox" <%= done ? 'checked="checked"' : '' %> /> | |
</div> | |
</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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<title>Backbone.js Todos</title> | |
<link rel="stylesheet" href="todos.css"/> | |
</head> | |
<body> |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<title>Backbone.js Todos</title> | |
<link rel="stylesheet" href="todos.css"/> | |
</head> | |
<body> |
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
this.bindTouchEvents = function (targetElement, touchEndFunction, context) { | |
var _context = context; | |
var moved = false; | |
$(document).off("touchstart", targetElement); | |
$(document).off("touchmove", targetElement); | |
$(document).off("touchend", targetElement); | |
$(document).on("touchstart", targetElement, null, function (event) { | |
}); |
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(IDM.CMS3.Web.Admin.App_Start.NinjectWebCommon), "Start")] | |
[assembly: WebActivator.ApplicationShutdownMethodAttribute(typeof(IDM.CMS3.Web.Admin.App_Start.NinjectWebCommon), "Stop")] | |
namespace IDM.CMS3.Web.Admin.App_Start | |
{ | |
using System; | |
using System.Web; | |
using Microsoft.Web.Infrastructure.DynamicModuleHelper; |
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 interface IPersonRespository | |
{ | |
Person GetPersonById(int id); | |
} | |
public class PersonRepository : IPersonRespository | |
{ | |
ISession _session; | |
public PersonRepository(ISession session) | |
{ |
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 IDM.CMS3.Service.Cache; | |
using IDM.CMS3.Service.Database.RavenDB.Indexes; | |
using IDM.CMS3.Service.Models; | |
using IDM.CMS3.Service.ViewModels; | |
using Ninject; | |
using Raven.Client; | |
using System; | |
using System.Collections.Generic; | |
using System.Configuration; | |
using System.Linq; |
OlderNewer