Published
Edited
Feb 12, 2020
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
selectedNodes = {
// Remove this return to hack around with custom filters.
return null;
const hasPrefix = sc.core.graph.NodeAddress.hasPrefix;
const prefixes = [].concat(
...githubNumberPrefixes("sourcecred", "sourcecred", 1513),
...githubNumberPrefixes("sourcecred", "sourcecred", 1514),
...githubNumberPrefixes("sourcecred", "sourcecred", 1541),
);
return lastWeekCredNodes.filter(n => {
for (const prefix of prefixes) {
if (hasPrefix(n.node.address, prefix)) return true;
}
return false;
});
}
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
hash = "0f67a3344186d877f246e9acf3e4b355cf44850c"
Insert cell
Insert cell
owner = "s-ben"
Insert cell
name = "makerdao-discourse-like-minting_02102020"
Insert cell
repoUrl = `https://raw.githubusercontent.com/${owner}/${name}`
Insert cell
Insert cell
pluginFile = `${repoUrl}/${hash}/sourcecred_data/projects/Zm9ydW0ubWFrZXJkYW8uY29t/pluginDeclarations.json`
Insert cell
plugins = {
const file = await fetch(pluginFile);
const json = await file.json();
return json[1];
}
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more