Skip to content

Instantly share code, notes, and snippets.

@mcantrell
mcantrell / fixSharepointAlternateHeaders.ps1
Created April 20, 2012 14:58
Fix Sharepoint Alternate Headers
Add-PSSnapin Microsoft.SharePoint.PowerShell
$w = Get-SPWeb http://domain/siteName; $w.AlternateHeader = $null; $w.Update()
@mcantrell
mcantrell / jquery.ui.splitButton.js
Created October 1, 2011 02:00
jQuery UI Split Button Plugin
/**
* creates a split button UI component using jquery ui 1.8.x's menu and button groups. See comment about potential
* changes in jquery ui 1.9.x.
*
* @see http://jqueryui.com/demos/button/splitbutton.html for a non-functional example
* @see https://raw.github.com/jquery/jquery-ui/5f4a6009e9987842b3a970c77bed0b52f7e810e2/demos/button/splitbutton.html for the code used for this plugin.
*
* @param options.selected closure to execute upon menu item selection (default: execute the link href)
* @param options.showMenu closure to show context menu (default: show the menu relative to the button)
*/