wizzard0’s gists (original) (raw)
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");
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
[ Show hidden characters]({{ revealButtonHref }})
#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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
[ Show hidden characters]({{ revealButtonHref }})
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', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
[ Show hidden characters]({{ revealButtonHref }})
// 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
[ Show hidden characters]({{ revealButtonHref }})
using System; |
---|
using System.Collections.Generic; |
using System.Diagnostics; |
using System.Threading.Tasks; |
namespace ActorBenchmark |
{ |
class Program |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
[ Show hidden characters]({{ revealButtonHref }})
CSM_ADD |
CSM_ADDE |
CSM_ARG |
CSM_DEAD |
CSM_DEADSELF |
CSM_DECIDXLOOP |
CSM_DECIDXUNILOOP |
CSM_DECLOCAL |
CSM_DECLOGLOOP |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
[ Show hidden characters]({{ revealButtonHref }})
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
[ Show hidden characters]({{ revealButtonHref }})
using System; |
---|
using System.Collections.Generic; |
using System.Linq; |
using System.Text; |
namespace ConsoleApplication1 |
{ |
class Program |
{ |
static void Main(string[] args) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
[ Show hidden characters]({{ revealButtonHref }})
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 | |
var res: TR = undefined; |
var shouldSkip = false; |
var breaker = function (r: TR) { |
res = r; |