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.Globalization; | |
using System.Web; | |
using System.Web.Mvc; | |
using System.Web.Routing; | |
using Moq; | |
using Umbraco.Core; | |
using Umbraco.Core.Configuration.UmbracoSettings; | |
using Umbraco.Core.Models; | |
using Umbraco.Core.Persistence; |
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 Umbraco.Forms.Core; | |
using Umbraco.Forms.Mvc.Models; | |
using Umbraco.Forms.Web.Controllers; | |
namespace UmbForms.Extensions | |
{ | |
public class UmbracoFormsExtController : UmbracoFormsController |
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
[diff] | |
tool = vsdiffmerge | |
guitool = vsdiffmerge | |
[difftool] | |
prompt = true | |
[difftool "vsdiffmerge"] | |
cmd = \"C:/Program Files (x86)/Microsoft Visual Studio 12.0/Common7/IDE/vsdiffmerge.exe\" \"$LOCAL\" \"$REMOTE\" /t | |
keepbackup = false | |
trustexistcode = true |
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
Title: Merge with unmodified | |
Command: [path to bat file] | |
Arguments: "%(ItemDir)" "$(ItemFilename)" "$(ItemExt)" | |
Initial dir: "$(ItemDir)" | |
Use output window | |
Don't prompt for args | |
Don't treat as unicode | |
Close on exit (disabled true) |
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 Lucene.Net.Analysis.Snowball; | |
using Lucene.Net.Documents; | |
using Lucene.Net.Highlight; | |
using Lucene.Net.Index; | |
using Lucene.Net.Search; | |
using Lucene.Net.Store; | |
using NUnit.Framework; | |
namespace Lucene.Experiments.Tests |
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.IO; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using Microsoft.WindowsAzure.Storage; | |
namespace MediaToAzure | |
{ |
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
SELECT | |
image.id, | |
replace(dataNvarchar, '/media', '/oldmedia') filename | |
FROM [umbracoNode] as image | |
inner join cmscontent on | |
cmscontent.nodeid = image.id | |
inner join cmscontenttype on | |
contenttype = cmscontenttype.nodeid | |
inner join cmsPropertyData on | |
cmsPropertyData.contentNodeId = image.id |
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
protected static ServiceContext CreateServiceContext(string basePath, string connectionString, string providerName) | |
{ | |
var serviceContextManagerType = OptimisticType.GetType("Umbraco.Core.Standalone.ServiceContextManager, Umbraco.Core"); | |
if (serviceContextManagerType == null) | |
throw new Exception("Couldn't get Umbraco.Core.Standalone.ServiceContextManager type"); | |
var serviceContextManager = Activator.CreateInstance(serviceContextManagerType, | |
connectionString, | |
providerName, | |
basePath | |
); |
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
<%@ Page Language="C#" AutoEventWireup="true" %> | |
<% | |
foreach (var assembly in AppDomain.CurrentDomain.GetAssemblies()) | |
{ | |
Response.Write("<b>" + assembly.FullName + "</b><br/>\r\n"); | |
Response.Write("<ul>\r\n"); | |
foreach (var subAssembly in assembly.GetReferencedAssemblies()) | |
{ | |
Response.Write("<li>" + subAssembly.FullName + "</li>\r\n"); |
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
$.fn.ellipsisUl = function() { | |
var sum = function(array, selector) { | |
var sum = 0; | |
array.each(function(i, e) { | |
sum += selector($(e)); | |
}); | |
return sum; | |
}, | |
paddingLeft = function(e) { | |
return Number(e.css("padding-left").replace("px", "")); |