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 class ObjectUnderTest | |
{ | |
private string _prefix; | |
public ObjectUnderTest(string prefix) | |
{ | |
_prefix = prefix; | |
} | |
public dto MapObject(obj input) |
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 slide(element, value, duration, total) { | |
if (!total) { total = 0;} | |
if (total >= duration) {return;} | |
var startLocation = element.scrollLeft; | |
var totalDistance = Math.abs(value - startLocation); | |
var step = 25; | |
var direction = (startLocation < value) ? "left" : "right"; | |
var iteration = duration / step; | |
var iterationDistance = totalDistance / iteration; |
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
module.exports = function(){ | |
var date = new Date() | |
, year = date.getFullYear() | |
, month = date.getMonth() + 1 | |
, day = date.getDate() | |
, hours = date.getHours() | |
, minutes = date.getMinutes() | |
, seconds = date.getSeconds(); | |
if (month < 10) { month = "0" + month; } |
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
!!! 5 | |
head | |
body | |
//- Currently this is the norm and works find | |
include path/to/partial | |
//- This is what I want to be able to do - provide the base directory from the route/rendering data. | |
include #{dir_from_route}/to/partial |
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 OrientationManager = (function () { | |
"use strict"; | |
var supportsOrientationChange = window.hasOwnProperty("onorientationchange") | |
, orientationEvent = supportsOrientationChange ? "orientationchange" : "resize" | |
, currentOrientation = window.orientation || 0 | |
, currentWidth = window.outerWidth; | |
function orientationChanged(callBack) { | |
var newWidth = window.outerWidth |
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
background: url(/sitecore/login/drop_wallpaper.jpg) no-repeat center center fixed; | |
background-size: cover; |
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
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/"> | |
<sitecore> | |
<settings> | |
<setting name="Login.BackgroundImageUrl"> | |
<patch:delete /> | |
</setting> | |
<setting name="Login.BackgroundImageUrl" value="/path/to/images/new_wallpaper_filename.jpg" /> | |
</settings> | |
</sitecore> | |
</configuration> |
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 Sitecore.Analytics.Model.Framework; | |
using System; | |
namespace MyNamespace.Facets | |
{ | |
public interface ICustomerPaymentFacet : IFacet | |
{ | |
decimal LastPaymentAmount { get; set; } | |
DateTime LastPaymentDate { get; set; } | |
} |
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 version="1.0" encoding="utf-8" ?> | |
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/"> | |
<sitecore> | |
<model> | |
<elements> | |
<element interface="MyNamespace.Facet.IContactPortalInfo, MyNamespace" implementation="MyNamespace.Facet.ContactPortalInfo, MyNamespace"/> | |
</elements> | |
<entities> | |
<contact> | |
<facets> |
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 Sitecore.Analytics; | |
using Sitecore.Analytics.Model.Entities; | |
namespace MyNamespace.Repositories | |
{ | |
public interface IPaymentFacetRepository | |
{ | |
void SetFacentInformation(string userIdentifier, decimal lastPaymentAmount, DateTime lastPaymentDate); | |
} |