Skip to content

Instantly share code, notes, and snippets.

View andrewconnell's full-sized avatar
📺
Building courses for @Voitanos

Andrew Connell andrewconnell

📺
Building courses for @Voitanos
View GitHub Profile
# =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
# Script: ExtractAssessmentQuestions.ps1
#
# Author: Andrew Connell
# http://www.AndrewConnell.com
#
# Description: Extracts assessment questions from a specified course module.
#
# Parameters: $CourseId - Course ID to extract the questions from.
# ex: "sharepoint2013-workflow-fundamentals"
@andrewconnell
andrewconnell / Logger.ps1
Created September 26, 2013 12:57
Standardized logger library for PowerShell scripts.
# =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
# Script: Logger.ps1
#
# Author: Andrew Connell
# http://www.AndrewConnell.com
#
# Description: Standardized logging library.
#
# =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
# =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
# Script: StageModule.ps1
#
# Author: Andrew Connell
# http://www.AndrewConnell.com
#
# Description: Extracts a course module assets for submission to Pluralsight.
#
# Parameters: $VideoClipStorePath - Fully qualified path to the location where the video clips are stored
# $BuildPath - Fully qualified path to the location where the files will be staged
@andrewconnell
andrewconnell / spAppUtils.js
Created October 22, 2013 13:36
SharePoint REST script library for obtaining common paths in client-side SharePoint 2013 development.
(function() {
var module = {
getAppAbsoluteUrl: getAppAbsoluteUrl,
getAppRelativeUrl: getAppRelativeUrl,
getAppODataApiUrl: getAppODataApiUrl
};
return module;
function getAppAbsoluteUrl() {
return _spPageContextInfo.webAbsoluteUrl;
@andrewconnell
andrewconnell / oDataUtils.js
Created October 22, 2013 13:38
OData utility library for working with SharePoint 2013 REST API.
(function() {
var baseRequest = {
url: "",
type: ""
};
var module = {
getRequest: getRequest,
newItemRequest: newItemRequest,
@andrewconnell
andrewconnell / SharePoint 2013 SPA UX Template - QuickLanch
Created February 18, 2014 10:52
HTML template of the Quick Launch for used to create a SharePoint 2013 Hosted App (SPH) Single Page App (SPA).
<div id="sideNavBox" class="ms-dialogHidden ms-forceWrap ms-noList">
<div class="ms-core-navigation" role="navigation">
<a id="startNavigation" name="startNavigation"></a>
<div class="ms-core-sideNavBox-removeLeftMargin">
<div class="noindex ms-core-listMenu-verticalBox">
<ul class="noindex ms-core-listMenu-root static">
<li class="static selected">
<a href="#" class="static selected menu-item ms-core-listMenu-item ms-displayInline ms-core-listMenu-selected ms-navedit-linkNode">Selected Link 1</a>
</li>
<li class="static">
@andrewconnell
andrewconnell / SharePoint 2013 SPA UX Template - Header
Created February 18, 2014 10:56
HTML template of the header for used to create a SharePoint 2013 Hosted App (SPH) Single Page App (SPA).
<div id="s4-titlerow" class="ms-dialogHidden" style="display:block;">
<div id="titleAreaBox" class="ms-noList ms-table ms-core-tableNoSpace">
<div id="titleAreaRow" class="ms-tableRow">
<div id="siteIcon" class="ms-tableCell ms-verticalAlignTop" style="width:180px;">
app logo goes here
</div>
<div class="ms-breadcrumb-box ms-tableCell ms-verticalAlignTop">
<div class="ms-breadcrumb-top">
<div class="ms-breadcrumb-dropdownBox" style="display:none;">
<span id="DeltaBreadcrumbDropdown"></span>
@andrewconnell
andrewconnell / SharePoint 2013 SPA UX Template - Working On It
Last active August 29, 2015 13:56
HTML template of the busy dialog for used to create a SharePoint 2013 Hosted App (SPH) Single Page App (SPA).
<div id="lpm-workingOnIt-container"
class="dissolve-animation">
<div id="lpm-workingOnIt-message">
<img src="data:image/gif;base64,R0lGODlhGAAYAJECAP///5mZmf///wAAACH/C05FVFNDQVBFMi4wAwEAAAAh+QQFCgACACwAAAAAGAAYAAACQJQvAGgRDI1SyLnI5jr2YUQx10eW5hmeB6Wpkja5SZy6tYzn+g5uMhuzwW6lFtF05CkhxGQm+HKuoDPplOlDFAAAIfkEBQoAAgAsFAAGAAQABAAAAgVUYqeXUgAh+QQFCgACACwUAA4ABAAEAAACBVRip5dSACH5BAUKAAIALA4AFAAEAAQAAAIFVGKnl1IAIfkEBQoAAgAsBgAUAAQABAAAAgVUYqeXUgAh+QQFCgACACwAAA4ABAAEAAACBVRip5dSACH5BAUKAAIALAAABgAEAAQAAAIFVGKnl1IAIfkECQoAAgAsBgAAAAQABAAAAgVUYqeXUgAh+QQJCgACACwAAAAAGAAYAAACJZQvEWgADI1SyLnI5jr2YUQx10eW5omm6sq27gvH8kzX9o3ndAEAIfkECQoAAgAsAAAAABgAGAAAAkCULxFoAAyNUsi5yOY69mFEMddHluYZntyjqY3Vul2yucJo5/rOQ6lLiak0QtSEpvv1lh8l0lQsYqJHaO3gFBQAACH5BAkKAAIALAAAAAAYABgAAAJAlC8RaAAMjVLIucjmOvZhRDHXR5bmGZ7co6mN1bpdsrnCaOf6zkOpzJrYOjHV7Gf09JYlJA0lPBQ/0ym1JsUeCgAh+QQJCgACACwAAAAAGAAYAAACQJQvEWgADI1SyLnI5jr2YUQx10eW5hme3KOpjdW6XbK5wmjn+s5Dqcya2Dox1exn9PSWJeRNSSo+cR/pzOSkHgoAIfkECQoAAgAsAAAAABgAGAAAAkCULxFoAAyNUsi5yOY69mFEMd
@andrewconnell
andrewconnell / SP2013 SPA UX Template - List View
Last active August 29, 2015 13:56
HTML template of the list view for used to create a SharePoint 2013 Hosted App (SPH) Single Page App (SPA).
<table border="0" cellspacing="0" cellpadding="1" class="ms-listviewtable">
<thead>
<tr valign="top" class="ms-viewheadertr ms-vhltr">
<th scope="col" style="max-width: 500px" class="ms-vh2">
<div displayname="Title" class="ms-vh-div">
<a class="ms-headerSortTitleLink">Title</a>
</div>
</th>
<th scope="col" style="max-width: 500px" class="ms-vh2">
<div displayname="Title" class="ms-vh-div">
@andrewconnell
andrewconnell / SP2013 SPA UX Template - Item View
Last active August 29, 2015 13:56
HTML template of the item view for used to create a SharePoint 2013 Hosted App (SPH) Single Page App (SPA).
<div style="padding-left:5px;">
<table class="ms-core-tableNoSpace">
<tbody>
<tr>
<td>
<div class="ms-webpart-zone ms-fullWidth">
<div class="s4-wpcell-plain ms-webpartzone-cell ms-webpart-cell-vertical ms-fullWidth">
<div class="ms-webpart-chrome ms-webpart-chrome-vertical ms-webpart-chrome-fullWidth">
<div width="100%" class="noindex">
<table>