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
(function () { | |
var $__append__ = $.fn.append; | |
var matcher = '*'; | |
$.fn.append = function () { | |
if (console && this.selector === matcher) console.log.call(console, { el: this, args: Array.prototype.slice.call(arguments) }); | |
$__append__.apply(this, arguments); | |
}; | |
}()); |
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
// Source: http://jsfiddle.net/hMEHB/15/ | |
$(document).ready(function () { | |
'use strict'; | |
var descenders = {"g": true, "j": true, "p": true, "q": true, "y": true}; | |
$('a').each(function (i, elem) { | |
var self = $(elem), | |
textNodes = self.text().split(''), | |
i = 0; | |
for (i = 0; i < textNodes.length; i += 1) { |
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
<rewrite> | |
<rules> | |
<rule name="Redirect till www.domain.se" enabled="true" stopProcessing="true"> | |
<match url="(.*)" /> | |
<conditions> | |
<add input="{HTTP_HOST}" pattern="^www\.domain\.se$" negate="true" /> | |
</conditions> | |
<action type="Redirect" url="http://www.domain.se/{R:1}" /> | |
</rule> | |
</rules> |
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
Request.ApplicationPath : /virtual_dir | |
Request.CurrentExecutionFilePath : /virtual_dir/webapp/page.aspx | |
Request.FilePath : /virtual_dir/webapp/page.aspx | |
Request.Path : /virtual_dir/webapp/page.aspx | |
Request.PhysicalApplicationPath : d:\Inetpub\wwwroot\virtual_dir\ | |
Request.QueryString : /virtual_dir/webapp/page.aspx?q=qvalue | |
Request.Url.AbsolutePath : /virtual_dir/webapp/page.aspx | |
Request.Url.AbsoluteUri : http://localhost:2000/virtual_dir/webapp/page.aspx?q=qvalue | |
Request.Url.Host : localhost | |
Request.Url.Authority : localhost:80 |
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.Web; | |
using Umbraco.Core; | |
namespace Meh.App_Code | |
{ | |
public class ChangeMenu : ApplicationEventHandler | |
{ |
OlderNewer