Skip to content

Instantly share code, notes, and snippets.

View RainerAtSpirit's full-sized avatar

Rainer Wittmann RainerAtSpirit

View GitHub Profile
@RainerAtSpirit
RainerAtSpirit / JekyllApps.js
Created July 9, 2012 12:18
Adding AngularJS search in Jekyll blog
/**
* Setup Module with `highlight` filter
*/
var JekyllApp = angular.module('JekyllApp', [], function ($routeProvider, $locationProvider) {
$locationProvider.html5Mode(false);
});
JekyllApp.filter('highlight', function () {
return function (text, filter) {
@RainerAtSpirit
RainerAtSpirit / JayData.xslt
Created June 6, 2012 16:58
SharePoint OData to JayData conversion
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:edm="http://schemas.microsoft.com/ado/2007/05/edm"
xmlns:annot="http://schemas.microsoft.com/ado/2009/02/edm/annotation"
xmlns:msxsl="urn:schemas-microsoft-com:xslt" exclude-result-prefixes="msxsl">
<xsl:key name="entityType" match="edm:EntityType" use="concat(string(../@Namespace),'.', string(@Name))"/>
<xsl:key name="associations" match="edm:Association" use="concat(string(../@Namespace),'.', string(@Name))"/>
<!-- Unsupported in DataFormWebPart -->
<!--<xsl:strip-space elements="property item unprocessed"/>-->
Requesting: metadata.xml... done.
Info: generating type Microsoft.SharePoint.DataService.AnnouncementsItem
Warning: AnnouncementsItem.Title:m:FC_TargetPath is an unknown/unprocessed attribued
Warning: AnnouncementsItem.Title:m:FC_ContentKind is an unknown/unprocessed attribued
Warning: AnnouncementsItem.Title:m:FC_KeepInContent is an unknown/unprocessed attribued
Warning: AnnouncementsItem.Modified:m:FC_TargetPath is an unknown/unprocessed attribued
Warning: AnnouncementsItem.Modified:m:FC_ContentKind is an unknown/unprocessed attribued
Warning: AnnouncementsItem.Modified:m:FC_KeepInContent is an unknown/unprocessed attribued
Warning: inverseProperty other side missing: Microsoft.SharePoint.DataService.AnnouncementsItem_CreatedBy
Warning: inverseProperty other side missing: Microsoft.SharePoint.DataService.AnnouncementsItem_ModifiedBy