Skip to content

Instantly share code, notes, and snippets.

@modster
Created December 15, 2021 10:48
Show Gist options
  • Save modster/21e197ac3ffd5aa51ccf9e88c9230fc5 to your computer and use it in GitHub Desktop.
Save modster/21e197ac3ffd5aa51ccf9e88c9230fc5 to your computer and use it in GitHub Desktop.
Bl.ocks.org

Bl.ocks

A simple viewer for sharing code examples hosted on GitHub Gist. For example, if your Gist URL is:

https://gist.github.com/mbostock/1353700

Replace “gist.github.com” with “bl.ocks.org” in the URL to view it:

https://bl.ocks.org/mbostock/1353700

The main source for your example is in index.html. This file can contain relative links to other files in your Gist, such as images, scripts or stylesheets. And of course you can use absolute links, such as CDN-hosted D3, jQuery or Leaflet. To explain your example, add a README.md written in Markdown. (You can omit the index.html if you just want to write, too.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment