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.7.2-vsdoc.js" /> | |
/// <reference path="../jquery-ui-1.8.20.js" /> | |
/// <reference path="../knockout-2.1.0.debug.js" /> | |
/// <reference path="../knockout.mapping-latest.debug.js" /> | |
/// <reference path="../bootstrap-modal.js" /> | |
/// <reference path="../moment.js" /> | |
var mi = mi || {}; | |
$(document).ready(function () { |
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> | |
<head> | |
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8" /> | |
<script> | |
function testcase() { | |
var img = new Array(); |
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.Web.Mvc; | |
using System.Web.Routing; | |
namespace Mvc.Website | |
{ | |
public class MvcApplication : Sitecore.Web.Application | |
{ | |
public static void RegisterRoutes(RouteCollection routes) | |
{ |
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
Get-Command | where { ($_.ImplementingType.Assembly -ne $null) -and ($_.ImplementingType.Assembly.GetName().Name.StartsWith("Cognifide.PowerShell")) } |
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.Net.Http; | |
using System.Web.Http; | |
namespace MvcApplication1.Controllers | |
{ | |
public class GetDataController : ApiController | |
{ | |
public string Get() | |
{ | |
return Request.RequestUri.Host; |
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.Threading; | |
namespace Mvc.Infrastructure.Sitecore.Events | |
{ | |
public class SimpleEventAggregator : IEventAggregator | |
{ | |
private readonly Dictionary<Type, List<WeakReference>> _eventSubscriberLists = |
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 Mvc.Infrastructure; | |
using Mvc.Infrastructure.Sitecore.Events; | |
namespace Mvc.Website.layouts.Event_Sublayouts | |
{ | |
public partial class Sample_Event_Consumer : System.Web.UI.UserControl, ISubscriber<FooHappened> | |
{ | |
// private EventHandler m_handler; |
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 @abstract // learnt something here, how to handle a reserved word as a namespace, obviously a similar thing | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
var session = new Session(); | |
var builder = new DetailsViewModelBuilder(); |
NewerOlder