Skip to content

Instantly share code, notes, and snippets.

Create a new map in Kumu, open up the javascript console, and point the map at the blueprint:

Workflows.setCurrentMapSource("https://example.com/path/to/blueprint.json");

For example, if you wanted to load the blueprint below you would use

Workflows.setCurrentMapSource("https://gist.githubusercontent.com/rymohr/06533f749645f13c7732/raw/420f21f74b6de68485347af058f1a3f8b12b89a9/simple-kumu-blueprint.json");
@wizzard0
wizzard0 / magic_ring.cpp
Created November 5, 2016 19:31 — forked from rygorous/magic_ring.cpp
The magic ring buffer.
#define _CRT_SECURE_NO_DEPRECATE
#include <stdio.h>
#include <string.h>
#include <Windows.h>
// This allocates a "magic ring buffer" that is mapped twice, with the two
// copies being contiguous in (virtual) memory. The advantage of this is
// that this allows any function that expects data to be contiguous in
// memory to read from (or write to) such a buffer. It also means that
@wizzard0
wizzard0 / carpona.txt
Created June 12, 2016 23:13
carpona test session
C:\dev\kae\carpona\carpona-web>node cli.js
hello carpona.
] list
{ key: '22405171d26a4539a61004f9cab9dc88',
type: 'storedCommand (149e0a4be9bc45f1872bb962ee9f74ac)',
data:
{ prev: null,
sid: 'ac8102f3a1d346d7b9c32784d211374c',
v: { type: 'hello', params: [] } } }
{ key: 'ac8102f3a1d346d7b9c32784d211374c',
@wizzard0
wizzard0 / connected-components.chr
Created April 25, 2016 13:02
Connected component (graph theory)
// USAGE: init(), then
// path("id1","id2") to add, break("id1","id2") to remove
// path("id1","id1") to add standalone vertex
// fact node_comp("nodeId", X) means "node belongs to component/cluster X"
// nodes from paths; A, B - node ID, C - cluster ID
path(A, B), recolor(C) ==> node_comp(A, C), node_comp(B, C)
// remove duplicates if exist
node_comp(A, C) \ node_comp(A, C) <=> true
@wizzard0
wizzard0 / ActorBenchmark.cs
Last active February 14, 2016 14:44
ActorBenchmark C#
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Threading.Tasks;
namespace ActorBenchmark
{
class Program
{
@wizzard0
wizzard0 / asm.txt
Created January 14, 2016 16:50
ASM
CSM_ADD
CSM_ADDE
CSM_ARG
CSM_DEAD
CSM_DEADSELF
CSM_DECIDXLOOP
CSM_DECIDXUNILOOP
CSM_DECLOCAL
CSM_DECLOGLOOP
0 = Success
1 = Operation not permitted
2 = No such file or directory
3 = No such process
4 = Interrupted system call
5 = Input/output error
6 = No such device or address
7 = Argument list too long
8 = Exec format error
@wizzard0
wizzard0 / Program.cs
Created December 29, 2014 14:19
Type-level recursion :)
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
@wizzard0
wizzard0 / asyncReduce.ts
Last active August 29, 2015 14:05
разума сон чудовищ рождает
export function asyncReduce<T, TR>(list: T[], callback:
(prev: Promise<TR>, cur: T, i: number, list: T[], cont: (result: TR) => void,
aborter: (reason: any) => void, breaker: (result: TR) => void) => void,
interval?: number, initial?: TR): Promise<TR> {
return new Promise(function (resolveAll, rejectAll) {
var iv = interval || 100;
var res: TR = undefined;
var shouldSkip = false;
var breaker = function (r: TR) {
res = r;