Skip to content

Instantly share code, notes, and snippets.

View nschelin's full-sized avatar
😴
sleepy

nschelin nschelin

😴
sleepy
View GitHub Profile
@nschelin
nschelin / ClientPortalNavigation.cs
Created September 24, 2018 17:59 — forked from vgrem/ClientPortalNavigation.cs
SharePoint Client PortalNavigation
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Text;
using Microsoft.SharePoint.Client;
namespace SharePoint.Client.Publishing.Navigation
{
/// <summary>
/// Represents navigation for portal pages and other portal navigation objects
@nschelin
nschelin / Sharepoint 2010 CQWP DebugMode XSL
Created March 28, 2018 19:52 — forked from pretentiousgit/Sharepoint 2010 CQWP DebugMode XSL
Sharepoint 2010 CQWP debug mode, based on Heather Solomon's customizations. Add to ItemStyle.xsl for instant reveal of what your CQWP is actually rolling up.
<xsl:template name="DebugMode" match="Row[@Style='DebugMode']" mode="itemstyle">
<xsl:for-each select="@*">
P:<xsl:value-of select="name()" /> T:<xsl:value-of select="@*" /> V:<xsl:value-of select="." /><br />
</xsl:for-each>
<br />
<br />
</xsl:template>
@nschelin
nschelin / DevCmdPrompt.ps1
Created February 7, 2017 21:49
PowerShell: Load Developer Command Prompt
# Visual Studio 2015 Developer Command Prompt in PowerShell
# credit: http://stackoverflow.com/questions/2124753/how-i-can-use-powershell-with-the-visual-studio-command-prompt
# path to scripts stored and loaded in profile
function LoadDevCmdPrompt() {
# store cwd and change path
pushd "C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\Tools"
# run batch file and each variable
var gulp = require('gulp');
var clean = require('gulp-clean');
var jshint = require('gulp-jshint');
var concat = require('gulp-concat');
var uglify = require('gulp-uglify');
var imagemin = require('gulp-imagemin');
var bases = {
app: 'app/',