Skip to content

Instantly share code, notes, and snippets.

@barryokane
barryokane / uWhiteLabelDashboardAction.cs
Created March 22, 2016 15:08
Umbraco install package action that adds a new "tab" to the dashboard (not a "Section"). Used in: https://github.com/EndzoneSoftware/uWhiteLabel
using System.Xml;
using umbraco.interfaces;
using Umbraco.Core.IO;
using Umbraco.Core;
using uWhiteLabel.Properties;
namespace uWhiteLabel.Install
{
public class uWhiteLabelDashboardAction : IPackageAction
{
@barryokane
barryokane / 0_reuse_code.js
Created February 1, 2016 21:45
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@barryokane
barryokane / Google Analytics Cross domain tracking.aspx
Last active December 29, 2015 10:09
Google Analytics Cross domain tracking when using server side redirect
<%@ Page Language="C#" %>
<script runat="server">
protected void RedirectClick(object sender, CommandEventArgs e)
{
if (Page.IsValid)
{
string url = RedirectUrl.Value;
//... whatever else ...