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 InstaService | |
{ | |
/// <summary> | |
/// Handles Connection to Instagram, configuration values are set in the web.config AppSettings element | |
/// </summary> | |
private readonly InstagramOAuthData _instagram; | |
private readonly InstagramService _service; | |
public InstaService() |
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
<!-- IIS URL Rewrite, this can be placed in the web.config --> | |
<!-- Handle Missing Media on Development Environment --> | |
<rule name="Handle missing media" stopProcessing="true"> | |
<match url="^media/(.*)" /> | |
<conditions logicalGrouping="MatchAll"> | |
<!-- Add Conditions, so local only --> | |
<add input="{REMOTE_HOST}" pattern="localhost" /> | |
<!-- Handle Files and Folders --> | |
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="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
<%@ Page Language="C#" %> | |
<%@ Import Namespace="System.Web.Security" %> | |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" | |
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<script runat="server"> | |
public void Login_OnClick(object sender, EventArgs args) | |
{ | |
if (FormsAuthentication.Authenticate(UsernameTextbox.Text, PasswordTextbox.Text)) | |
FormsAuthentication.RedirectFromLoginPage(UsernameTextbox.Text, NotPublicCheckBox.Checked); |
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
// Table of Contents | |
// [1] Globals | |
// [A] Event, Ready | |
// [B] Event, Loaded | |
// [C] Event, Resized | |
// [1] Globals | |
hasObject = false; | |
// [A] Event, Ready (fast) |
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"?> | |
<!DOCTYPE xsl:stylesheet [ | |
<!ENTITY MaxLevel "5"> | |
<!ENTITY Page "*[@isDoc and @level <= &MaxLevel;] [not(self::FormPage | self::ThankYouPage )]"> | |
]> | |
<xsl:stylesheet | |
version="1.0" | |
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" | |
xmlns:umb="urn:umbraco.library" xmlns:msxml="urn:schemas-microsoft-com:xslt" | |
exclude-result-prefixes="umb xsl msxml" |
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
<xsl:template match="* [@isDoc]" mode="sitemap-entry"> | |
<xsl:param name="metaSitemapChangeFreq" select="&DefaultChangeFreq;" /> | |
<xsl:param name="metaSitemapPriority" select="&DefaultPriority;"/> | |
<xsl:param name="recurse" select="true()" /> | |
<url> | |
<loc> | |
<xsl:apply-templates select="@id" /> | |
</loc> | |
<lastmod><xsl:value-of select="@updateDate" />+00:00</lastmod> | |
<changefreq> |
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" ?> | |
<xsl:stylesheet | |
version="1.0" | |
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" | |
xmlns:umb="urn:umbraco.library" | |
exclude-result-prefixes="umb" | |
> | |
<xsl:output method="xml" indent="yes" omit-xml-declaration="yes" /> | |
<!-- Laurie, VooDooBytes, 14th November 2013 --> |
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.Web.Mvc; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using uComponents.Core; | |
using uComponents.Core.uQueryExtensions; | |
using umbraco.NodeFactory; |
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
-07-08 16:06:47,091 [10] INFO Umbraco.Core.PluginManager - [Thread 28] Completed resolution of types of umbraco.interfaces.IDataType, found 77 (took 94ms) | |
2013-07-08 16:07:09,810 [10] INFO Umbraco.Core.Publishing.PublishingStrategy - [Thread 28] Content 'Home' with Id '1076' has been published. | |
2013-07-08 16:08:54,181 [10] INFO Umbraco.Core.Publishing.PublishingStrategy - [Thread 37] Content 'Home (1)' with Id '1076' has been published. | |
2013-07-08 16:09:00,626 [10] INFO Umbraco.Core.Publishing.PublishingStrategy - [Thread 33] Content 'Home' with Id '1076' has been published. | |
2013-07-08 16:19:07,726 [10] INFO Umbraco.Core.Publishing.PublishingStrategy - [Thread 24] Content 'Home' with Id '1076' has been published. | |
2013-07-08 16:20:31,892 [10] INFO umbraco.BusinessLogic.Log - [Thread 20] Log scrubbed. Removed all items older than 2013-05-09 16:20:31 | |
2013-07-08 16:20:31,902 [10] INFO Umbraco.Core.UmbracoApplicationBase - [Thread 20] Application shutdown. Reason: ConfigurationChange | |
2013-07-08 16:20:34,63 |
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
<# | |
.SYNOPSIS CreateWebsite - Automatic website creation. | |
.DESCRIPTION Allow to create a website and its ApplicationPool. Some tuning is included | |
.PARAMETER SiteName Defines the display name (in IIS Manager) of the website | |
Mandatory parameter. | |
.PARAMETER Port Defines the listening port for the website | |
Default is "80". | |
.PARAMETER Environment Defines the website environment. | |
This will be added as suffix in the website display name | |
Possible values are "LIVE", "STAGING", "UAT", "QUAL" or "DEV" |
NewerOlder