Skip to content

Instantly share code, notes, and snippets.

Andrew Connell andrewconnell

Block or report user

Report or block andrewconnell

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@andrewconnell
andrewconnell / SP2013 SPA UX Template - Item View
Last active Aug 29, 2015
HTML template of the item view for used to create a SharePoint 2013 Hosted App (SPH) Single Page App (SPA).
View SP2013 SPA UX Template - Item View
<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>
@andrewconnell
andrewconnell / SharePoint 2013 SPA UX Template - Working On It
Last active Aug 29, 2015
HTML template of the busy dialog for used to create a SharePoint 2013 Hosted App (SPH) Single Page App (SPA).
View SharePoint 2013 SPA UX Template - Working On It
<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 Aug 29, 2015
HTML template of the list view for used to create a SharePoint 2013 Hosted App (SPH) Single Page App (SPA).
View SP2013 SPA UX Template - List View
<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 / WorkflowManifest.xml
Created Oct 28, 2014
Create an Integrated Workflow App for SharePoint Online before the Office Developer Tools Support it.
View WorkflowManifest.xml
<SPIntegratedWorkflow xmlns="http://schemas.microsoft.com/sharepoint/2014/app/integratedworkflow">
<IntegratedApp>true</IntegratedApp>
</SPIntegratedWorkflow>
@andrewconnell
andrewconnell / AAD+H App Manifest
Created Nov 27, 2014
This a hypothetical signature for a Office 365 / SharePoint deployment service for my AAD+H concept outlined here http://aconn.me/1y3klra
View AAD+H App Manifest
public interface IAppDeploymentServiceReceiver {
public AppDeploymentServiceResult DeployApp(AppDeploymentManifest manifest,
AppProperties props) {
var result = new AppDeploymentServiceResult();
// set result
return result;
}
}
public class AppDeploymentServiceResult {
@andrewconnell
andrewconnell / SpRestBatchResponseCreate
Created Dec 1, 2014
Sample SharePoint Online REST Batch Response Creating Items & Querying List
View SpRestBatchResponseCreate
HTTP/1.1 200 OK
Cache-Control: private, max-age=0
Content-Type: multipart/mixed; boundary=batchresponse_4cc2e5b3-bf5b-42d7-9de3-9a381313d178
Expires: Sat, 15 Nov 2014 12:56:24 GMT
Last-Modified: Sun, 30 Nov 2014 12:56:24 GMT
Server: Microsoft-IIS/7.5
Set-Cookie: rtFa=tuVED+yNm9wcX/FhwoP4LWBIKTDdkU57FJQFUXDB1HxxIOrPF9UmWGJK8MVlRWuyRhJtagkeIb0pEXuAse2dC1/5o/af/PZO9gWU4QGu7hkePjAytr5+owuHuWBwX7kpkGglQn541INJB4Z1g1xKJGuDvtyA8XIJLv0m/ZrhQQbhc6/jz3LsriZs9Amy+fV3iDSHgdBLZ+Y89khmU2G+qwVcZQqJvBC0Yp0pJrYbj58QY5KldnzEBUwo6GTMruGkdQxFgPWHt/G4EKCeilSyHfvg8V2HK6TAKFo7K9zWwCopntObFEpy45Eumke/RVDFSyd5BlI/KhhEFszw9dCzqR/EIWHQAV0uBxcWsKlou7LaHo/tSN03W3vFwb1rIFiZIAAAAA==; domain=sharepoint.com; path=/; HttpOnly
Set-Cookie: FedAuth=77u/PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz48U1A+RmFsc2UsMGguZnxtZW1iZXJzaGlwfDEwMDM3ZmZlODBjYjNkNjJAbGl2ZS5jb20sMCMuZnxtZW1iZXJzaGlwfG1lQGFuZHJld2Nvbm5lbGwuY29tLDEzMDYyMjU3NjYxMjkxNTAwNCxGYWxzZSxrL3IxRXN3WG1RMk1rYmY0eFhQWXZoUVZ0clBnTWcwZVo0NTh4aDErd3RwbFk5L1RIYXFObUtuaW1BZThDMzh0b3hLNmdSSU
@andrewconnell
andrewconnell / gist:c440874d5aa9d4f78eed
Last active Aug 29, 2015
Simple OData Batch Request Header
View gist:c440874d5aa9d4f78eed
POST http://[your-sharepoint-site]/_api/$batch HTTP/1.1
Host: [your-sharepoint-site-domain]
X-RequestDigest: [your-sharepoint-digest]
Content-Type: multipart/mixed; boundary=batch_36522ad7-fc75-4b56-8c71-56071383e77b
[batch-request-body]
@andrewconnell
andrewconnell / SpRestBatchResponseDelete
Created Dec 1, 2014
Sample SharePoint Online REST Batch Response Deleting Items & Querying List
View SpRestBatchResponseDelete
HTTP/1.1 200 OK
Cache-Control: private, max-age=0
Transfer-Encoding: chunked
Content-Type: multipart/mixed; boundary=batchresponse_924c62ae-c627-46ca-9fa9-e7a01b54ace5
Expires: Sat, 15 Nov 2014 12:56:27 GMT
Last-Modified: Sun, 30 Nov 2014 12:56:27 GMT
Server: Microsoft-IIS/7.5
Set-Cookie: rtFa=tuVED+yNm9wcX/FhwoP4LWBIKTDdkU57FJQFUXDB1HxxIOrPF9UmWGJK8MVlRWuyRhJtagkeIb0pEXuAse2dC1/5o/af/PZO9gWU4QGu7hkePjAytr5+owuHuWBwX7kpkGglQn541INJB4Z1g1xKJGuDvtyA8XIJLv0m/ZrhQQbhc6/jz3LsriZs9Amy+fV3iDSHgdBLZ+Y89khmU2G+qwVcZQqJvBC0Yp0pJrYbj58QY5KldnzEBUwo6GTMruGkdQxFgPWHt/G4EKCeilSyHfvg8V2HK6TAKFo7K9zWwCopntObFEpy45Eumke/RVDFSyd5BlI/KhhEFszw9dCzqR/EIWHQAV0uBxcWsKlou7LaHo/tSN03W3vFwb1rIFiZIAAAAA==; domain=sharepoint.com; path=/; HttpOnly
Set-Cookie: FedAuth=77u/PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz48U1A+RmFsc2UsMGguZnxtZW1iZXJzaGlwfDEwMDM3ZmZlODBjYjNkNjJAbGl2ZS5jb20sMCMuZnxtZW1iZXJzaGlwfG1lQGFuZHJld2Nvbm5lbGwuY29tLDEzMDYyMjU3NjYxMjkxNTAwNCxGYWxzZSxrL3IxRXN3WG1RMk1rYmY0eFhQWXZoUVZ0clBnTWcwZVo0NTh4aDErd3RwbFk5L1RIYXF
@andrewconnell
andrewconnell / gist:92006101e6ed194f2d19
Created Dec 1, 2014
Simple OData Batch Request Intro
View gist:92006101e6ed194f2d19
Content-Type: application/http
Content-Transfer-Encoding: binary
@andrewconnell
andrewconnell / gist:99aef5684d716ae5aa14
Created Dec 1, 2014
Simple OData Batch Request Query
View gist:99aef5684d716ae5aa14
--batch_45473b4e-5ce5-409d-dd5a-3d60082df906
Content-Type: application/http
Content-Transfer-Encoding: binary
GET https://[your-sharepoint-site]/_api/web/lists/getbytitle('Drivers')/items?$orderby=Title HTTP/1.1
Host: [your-sponline-domain]
Accept: application/json;odata=verbose
You can’t perform that action at this time.