Skip to content

Instantly share code, notes, and snippets.

View RainerAtSpirit's full-sized avatar

Rainer Wittmann RainerAtSpirit

View GitHub Profile
@RainerAtSpirit
RainerAtSpirit / index.html
Created April 8, 2013 11:43
PromiseDemo: Using SPServiceAlpha as data provider for a Durandal app
<section>
<h2 class="page-title" data-bind="text: title"></h2>
<div class="row-fluid">
<div class="span6">
<label>Select a list</label>
<select data-bind="options: lists, optionsText: 'name', value: activeList"></select>
</div>
<div class="span6 well">
@RainerAtSpirit
RainerAtSpirit / gist:5490113
Last active December 16, 2015 20:09
SharePoint 2013 Online $metadata are back! _/api/$metadata
<?xml version="1.0" encoding="utf-8"?>
<edmx:Edmx Version="1.0" xmlns:edmx="http://schemas.microsoft.com/ado/2007/06/edmx">
<edmx:DataServices m:DataServiceVersion="3.0" m:MaxDataServiceVersion="3.0" xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata">
<Schema Namespace="SP" xmlns="http://schemas.microsoft.com/ado/2009/11/edm">
<ComplexType Name="KeyValue">
<Property Name="Key" Type="Edm.String"/>
<Property Name="Value" Type="Edm.String"/>
<Property Name="ValueType" Type="Edm.String"/>
</ComplexType>
<ComplexType Name="SimpleDataRow">
@RainerAtSpirit
RainerAtSpirit / jqGrid-index.html
Created May 2, 2013 10:21
Durandal jqGrid integration
<div id='jqxWidget'>
<div style="margin-bottom: 10px;">
<input id="addButton" type="button" data-bind="click: addItem, jqxButton: { theme: getDemoTheme() }" value="Add Item" />
<input id="removeButton" type="button" data-bind="click: removeItem, jqxButton: { theme: getDemoTheme() }" value="Remove Last Item" />
<input id="updateButton" type="button" data-bind="click: updateItem, jqxButton: { theme: getDemoTheme() }" value="Update First Item" />
<div data-bind="jqxCheckBox: { checked: disabled, theme: getDemoTheme() }" style='margin-top: 5px;' id="checkBox">Disabled</div>
</div>
<div data-bind="jqxGrid: {
source: items, disabled: disabled, autoheight: true,
theme: getDemoTheme(),
@RainerAtSpirit
RainerAtSpirit / Vagrantfile
Created November 20, 2013 12:43
Vagrand 1.3.5 + vmware_workstation plugin 2.1.0 + vmware workstation 9.0.3 on Windows 7 64bit
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "precise64"
config.vm.provider :vmware_workstation do |vb|
vb.gui = true
wallaby.js started
core v1.0.78
TypeError: Cannot read property '_session' of null
at Server.handler (C:\Users\Rainer\.WebStorm10\system\wallaby\wallaby\node_modules\phantom\node_modules\shoe\index.js:10:33)
at emitOne (events.js:77:13)
at Server.emit (events.js:166:7)
at App.emit (C:\Users\Rainer\.WebStorm10\system\wallaby\wallaby\node_modules\phantom\node_modules\shoe\node_modules\sockjs\lib\sockjs.js:182:27)
at Session.emit_open (C:\Users\Rainer\.WebStorm10\system\wallaby\wallaby\node_modules\phantom\node_modules\shoe\node_modules\sockjs\lib\transport.js:107:23)
at process._tickCallback (node.js:340:13)
@RainerAtSpirit
RainerAtSpirit / rx.firebase.js
Created November 11, 2015 22:51 — forked from gsoltis/rx.firebase.js
Quick Firebase / RxJS binding prototype
(function () {
var makeCallback = function(eventType, observer) {
if (eventType === 'value') {
return function(snap) {
observer.onNext(snap);
};
} else {
return function(snap, prevName) {
// Wrap into an object, since we can only pass one argument through.
observer.onNext({snapshot: snap, prevName: prevName});
@RainerAtSpirit
RainerAtSpirit / machine.js
Created November 5, 2019 12:31
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@RainerAtSpirit
RainerAtSpirit / machine.js
Last active November 20, 2019 13:09
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@RainerAtSpirit
RainerAtSpirit / machine.js
Created November 7, 2019 12:04
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@RainerAtSpirit
RainerAtSpirit / machine.js
Created November 18, 2019 16:41
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions