Skip to content

Instantly share code, notes, and snippets.

View stiiifff's full-sized avatar

Steve Degosserie stiiifff

  • Belgium
View GitHub Profile
@stiiifff
stiiifff / gist:5b727f3ac59514997ef57f690f67e1a6
Created November 30, 2020 10:37
Substrate Enterprise sample demo
1. Run 3-node local net
2. Create ALICE_ORG in sample UI
3. Run chain-init-story script
4. Create new shipment in sample UI e.g. S0002 (status: Ready)
6. (Install & run Android app)
7. Create account e.g. ANDROID
8. Add account to Polkadot.js extension
9. Provision new account (balance transfer from ALICE to e.g. ANDROID account)
10. Add ANDROID account to ALICE_ORG org
@stiiifff
stiiifff / ring.erl
Created October 21, 2012 21:57
Erlang process ring (Erlang programming, Chapter 4, Ex 4.2)
-module (ring).
-export ([start/3, first_proc/3, first_loop/4, proc_start/3, proc_loop/2]).
start(MsgCount, ProcCount, Msg) ->
spawn(ring, first_proc, [MsgCount, ProcCount, Msg]).
first_proc(MsgCount, ProcCount, Msg) ->
io:format("First process ~w created, setting up the rest of the ring ...~n", [self()]),
NextPid = spawn(ring, proc_start, [self(), self(), ProcCount-1]),
LastPid = receive