Skip to content

Instantly share code, notes, and snippets.

View RainerAtSpirit's full-sized avatar

Rainer Wittmann RainerAtSpirit

View GitHub Profile
@RainerAtSpirit
RainerAtSpirit / machine.js
Created December 19, 2019 15:57
Generated by XState Viz: https://xstate.js.org/viz
const fetchMachine = Machine(
{
id: "fetch",
initial: "idle",
context: {
retries: 0
},
states: {
idle: {
initial: 'noError',
@RainerAtSpirit
RainerAtSpirit / machine.js
Last active November 22, 2019 16:28
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
// - XState (all XState exports)
@RainerAtSpirit
RainerAtSpirit / machine.js
Created November 18, 2019 20:55
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
@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
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 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 / 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});
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 / 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