docker run --name recorder-redis -p 6379:6379 -d redis:alpine
This file contains hidden or 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.Linq; | |
using System.Linq.Expressions; | |
using System.Reflection; | |
using System.Text.RegularExpressions; | |
using Moq; | |
using Umbraco.Core.Models; | |
using Umbraco.Core.Models.PublishedContent; | |
using Umbraco.Web; | |
using Umbraco.ModelsBuilder; |
This file contains hidden or 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.IO; | |
using System.Web; | |
using System.Web.Mvc; | |
using System.Web.Routing; | |
namespace MendozaDM.Core.Helpers | |
{ | |
public static class TransformationHelper | |
{ | |
/// <summary> |
This file contains hidden or 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.Globalization; | |
using System.Linq; | |
using Examine; | |
using Umbraco.Core; | |
using Umbraco.Core.Models; | |
using Umbraco.Core.Models.PublishedContent; | |
namespace Skybrud.ExamineDevStuff { |
This file contains hidden or 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
[ImplementPropertyType("slider")] | |
public IEnumerable<HomeSlider> Slider | |
{ | |
get | |
{ | |
var archetypeModel = this.GetPropertyValue<ArchetypeModel>("slider"); | |
return archetypeModel.Select(x => | |
{ | |
return new HomeSlider() | |
{ |
This file contains hidden or 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 Awesome.FormDemo.Controllers | |
@model Awesome.FormDemo.Models.TicketOrderModel | |
@if (TempData.ContainsKey("CustomMessage")) | |
{ | |
<div>Hooray! - @TempData["CustomMessage"]</div> | |
} | |
else | |
{ | |
using (Html.BeginUmbracoForm<TicketOrderController>("FormSubmit")) |
This file contains hidden or 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 class ArticlePageViewModel { | |
// use partial view "TopMenuViewModel.cshtml" | |
public TopMenuViewModel TopMenu {get;set;} | |
// use partial view "WidgetsViewModel.cshtml" | |
public WidgetsViewModel Widgets {get;set;} | |
// use partial view "ExtraWidgets.cshtml" | |
[UIHint("ExtraWidgets")] |
This file contains hidden or 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
<%@ Master Language="C#" AutoEventWireup="true" %> | |
<%@ Import Namespace="umbraco" %> | |
<script runat="server"> | |
protected void Page_Load(object sender, EventArgs e) | |
{ | |
var createdObject = nodeObject(umbraco.NodeFactory.Node.getCurrentNodeId(), Request["includeChildren"] != null, Request["includeAllChildren"] != null); |
This file contains hidden or 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
<# | |
.SYNOPSIS CreateWebsite - Automatic website creation. | |
.DESCRIPTION Allow to create a website and its ApplicationPool. Some tuning is included | |
.PARAMETER SiteName Defines the display name (in IIS Manager) of the website | |
Mandatory parameter. | |
.PARAMETER Port Defines the listening port for the website | |
Default is "80". | |
.PARAMETER Environment Defines the website environment. | |
This will be added as suffix in the website display name | |
Possible values are "LIVE", "STAGING", "UAT", "QUAL" or "DEV" |