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 RpSurfaceController : SurfaceController | |
{ | |
protected override void Initialize(System.Web.Routing.RequestContext requestContext) | |
{ | |
var domains = ApplicationContext.Current.ApplicationCache.RuntimeCache.GetCacheItem<List<DomainInfoDto>>( | |
"GenericTempStore-Domains", | |
() => | |
{ |
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
Sub NumericFormatting() | |
' | |
' NumericFormatting Macro | |
' | |
' Keyboard Shortcut: Ctrl+Shift+N | |
' | |
Dim cel As Range | |
Dim selectedRange As Range | |
Set selectedRange = Application.Selection |
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.Text.RegularExpressions; | |
using System.Web; | |
using System.Web.Compilation; | |
//using NewsletterStudio.Model; | |
using NewsletterStudio.Bll; | |
using NewsletterStudio.Core.Model; |
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.Net.Http.Formatting; | |
using System.Web; | |
using NewsletterStudio.Infrastucture; | |
using NewsletterStudio.Infrastucture.Services; | |
using Umbraco.Web.Models.ContentEditing; | |
using Umbraco.Web.Models.Trees; | |
using Umbraco.Web.Mvc; |
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
-- set how many versions to keep using @numberOfVersionToKeep, this can be set to anything from 0 and above. 0 will clean all versions except the current of course. | |
-- actually delete stuff by modifying last line to 'commit tran' | |
begin tran | |
go | |
DECLARE @numberOfVersionToKeep int = 20 | |
IF OBJECT_ID('tempdb..#tmp') IS NOT NULL DROP Table #tmp | |
create table #tmp (versionid uniqueidentifier) |
OlderNewer