Skip to content

Instantly share code, notes, and snippets.

@Jeavon
Jeavon / slimsy.cshtml
Last active March 3, 2016 12:10
Slimsy Pad
@using Umbraco.Web.Models
@Model.Content.GetCropUrl(100, 200, "myContentCropperPropertyAlias", quality: 90, imageCropMode: ImageCropMode.Pad, ratioMode: ImageCropRatioMode.Height, furtherOptions: "&slimmage=true")
angular
.module('umbraco')
.controller("nuPickers.Shared.TypeaheadListPicker.TypeaheadListPickerEditorController",
['$scope',
function ($scope) {
alert('hi');
//$scope.clear = function () {
// $scope.typeahead = null;
@Jeavon
Jeavon / gist:be9f8ca38cf8996ffede
Created April 30, 2015 19:33
ConfigDurationOutputCacheAttribute.cs
namespace MyProj.Common.Cache
{
using System.Web.Configuration;
using System.Web.Mvc;
using System.Web.UI;b
using DevTrends.MvcDonutCaching;
public class ConfigDurationOutputCacheAttribute : DonutOutputCacheAttribute
{
@Jeavon
Jeavon / RteCustomValueConverter.cs
Created May 13, 2015 21:31
Umbraco RteCustomValueConverter to output data-rel attributes on images
namespace MyProject.ValueConverters
{
using System.Linq;
using System.Web;
using HtmlAgilityPack;
using Umbraco.Core.Models.PublishedContent;
using Umbraco.Core.PropertyEditors;
using Umbraco.Core.PropertyEditors.ValueConverters;
@Jeavon
Jeavon / gist:7111b5443c671e738bdb
Created November 20, 2015 13:09
umbOktoberfest
"%WINDIR%\Microsoft.NET\Framework64\v4.0.30319\aspnet_regsql.exe" -ssadd -d umbOktoberFest2015SessionState -S <SQLServer\Instance> -U <SQLUser> -P <SQLPassword> –sstype c
<sessionState allowCustomSqlDatabase="true" cookieless="UseCookies" mode="SQLServer" sqlConnectionString="server=<SQLServer\Instance>;database=umbOktoberFest2015SessionState;user id=<SQLUser>;password=<SQLPassword>" timeout="43200" />