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
@wizzard0
wizzard0 / 131001-cen.dot
Last active December 24, 2015 15:49
graph layout example
digraph{
graph [rankdir="RL"];
node [shape="box",margin="0.01,0.01", style="filled",fillcolor="yellow"]
_1 [label=""];
_2 [label=""];
_3 [label=""];
_4 [label=""];
_5 [label=""];
_6 [label=""];
_7 [label=""];
@wizzard0
wizzard0 / IntegerSelftest.cs
Last active December 20, 2015 20:19
In Soviet Russia, portable code writes you!
using System;
using System.Runtime.CompilerServices;
namespace InsaneTests
{
public class IntegerSelftest
{
public static bool ParanoidAssertLongLong(long data, long _int, string should,
string fn = "?", string fun = "?",
int ln = -1)
@wizzard0
wizzard0 / NetworkUtil.cs
Created April 2, 2013 16:47
Multipart form+file upload
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net;
using System.IO;
using System.Collections.Specialized;
using System.Diagnostics;
namespace Util