Skip to content

Instantly share code, notes, and snippets.

@enjalot
Created July 20, 2020 01:59
Show Gist options
  • Save enjalot/ffd71f5ae939caef9939b8334d112c9d to your computer and use it in GitHub Desktop.
Save enjalot/ffd71f5ae939caef9939b8334d112c9d to your computer and use it in GitHub Desktop.
coding with fire: stream example
license: mit
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<script src="https://d3js.org/d3.v4.min.js"></script>
<style>
body {
margin:0;position:fixed;top:0;right:0;bottom:0;left:0;
}
</style>
</head>
<div id="observablehq-393679bd">
<div class="observablehq-viewof-canvas"></div>
</div>
<script type="module">
import {Runtime, Inspector} from "https://cdn.jsdelivr.net/npm/@observablehq/runtime@4/dist/runtime.js";
import define from "https://api.observablehq.com/@codingwithfire/coding-with-doom-fire.js?v=3";
(new Runtime).module(define, name => {
if (name === "viewof canvas") return Inspector.into("#observablehq-393679bd .observablehq-viewof-canvas")();
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment