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
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
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 System.IO; | |
using System.Net; | |
using System.Net.Http; | |
using System.Threading.Tasks; | |
using Newtonsoft.Json; | |
namespace AHttpClientTestWrapper | |
{ | |
public class HttpClientWrapper |
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; | |
public class RandomPassword | |
{ | |
private static Random random = new Random(); | |
public static string Create(int length = 8, float charRatio = .8f) | |
{ | |
string password = ""; |
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
[TestFixture] | |
public class TestStub: UmbracoTestBase | |
{ | |
[SetUp] | |
public void Setup() | |
{ | |
SetupFakeEnvironment(); | |
SetupRootContent(); | |
} |
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 ControlRenderer : IDisposable | |
{ | |
public static string RenderContents(Control control) | |
{ | |
using (var renderer = new ControlRenderer(control)) | |
{ | |
return renderer.Render(); | |
} | |
} |
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
[TestFixture] | |
public class BusinessTests | |
{ | |
private IRepository<Entity> repo; | |
private ConcreteService service; | |
[SetUp] | |
public void SetUp() | |
{ | |
repo = MockRepository.GenerateStub<IRepository<Entity>>(); |
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
<%@ Control Language="C#" AutoEventWireup="true" Inherits="This.Web.usercontrols.Administrative.UCommerceDataTypesCategory" %> | |
<asp:UpdateProgress ID="UpdateProgress1" | |
runat="server" | |
AssociatedUpdatePanelID="CategoryPanel"> | |
<ProgressTemplate> | |
<img src="/umbraco/images/throbber.gif" alt="Loading"/> | |
</ProgressTemplate> | |
</asp:UpdateProgress> | |
<asp:UpdatePanel runat="server" UpdateMode="Always" ID="CategoryPanel"> | |
<ContentTemplate> |
OlderNewer