Skip to content

Instantly share code, notes, and snippets.

View barnabemonnot's full-sized avatar

Barnabé Monnot barnabemonnot

View GitHub Profile
@barnabemonnot
barnabemonnot / reorg_diagram.R
Created May 29, 2022 09:35
7-block reorg diagram code
library(tidyverse)
library(jsonlite)
library(data.table)
library(gganimate)
library(magick)
pd <- lapply(readLines("~/Downloads/pb.log"), fromJSON)
pd_sample <- pd[[1]]
messages <- pd %>%
map(function(x) {
I contributed to the Semaphore Trusted Setup Multi-Party Ceremony.
The following are my contribution signatures:
Circuit: semaphore16
Contributor # 63
Hash: 3c21475b 78483fb0 bae7a163 0b59b2c7
ed624881 2670571b 11543f32 c4ae60c9
480b64c9 a55904ad 0b4667a9 84e9f360
aace1ee9 3884d606 cf4c652b a460d6b9
did:3:bafyreibdxhz2atfdbfsuov4otq4sqtf4bcx2fqwbdlijp46xl6rl5pu6a4
<!DOCTYPE html>
<html>
<meta>
<title>Malta</title>
<script src="https://d3js.org/d3.v3.min.js" charset="utf-8"></script>
</meta>
<body>
<div id="viz"></div>
</body>
<script>
@barnabemonnot
barnabemonnot / caterpillar.js
Created November 24, 2013 00:17
This is a Gist to accompany my article Dynamic D3.js with a simple caterpillar example (http://blablarnab.com/wordpress/2013/11/23/dynamic-d3-js-with-a-simple-caterpillar-example/). It shows how to dynamically update a force layout with D3.js, making real-time applications easier to configure by clearly separating the handling of the data with i…
var vv = window,
w = vv.innerWidth,
h = vv.innerHeight;
var svg = d3.select("#animviz")
.append("svg")
.attr("width", w)
.attr("height", h);
svg.append("g").attr("class", "links");