Skip to content

Instantly share code, notes, and snippets.

@tonyfast
Last active August 29, 2015 14:17
Show Gist options
  • Save tonyfast/1ce4254662878c78840e to your computer and use it in GitHub Desktop.
Save tonyfast/1ce4254662878c78840e to your computer and use it in GitHub Desktop.
Boilerplate for bl.ocks.org - fork this to make your first block

Readme.md

Gist files named readme.md are as parsed as markdown.

Usage

Fork this Gist to make your first bl.ock.

Boilerplate for bl.ocks.org

bl.ocks.org renders gists a single page website when there is a file named index.html. bl.ocks will also convert readme.md markdown syntax to html. All other files are monospaced code.

Native Gists and Markdown

Native gists always render markdown typed gist files as Github Flavored Markdown

Gist Ordering

Gists are order alphabetically by file name. Bl.ocks presents index.html first then readme.md if and only if they exist. All other files are monotyped.

References

anything.else bunny

<!doctype html>
<html>
<head>
<!-- Load scripts and styles here-->
</head>
<body>
<h1>Everything in index.html is rendered in the browswer</h1>
</body>
</html>

Rendering other Markdown

This will be pretty HTML as a normal Gist and monospaced type on bl.ocks.org.

__ /^\
.' \ / :.\
/ \ | :: \
/ /. \ / ::: |
| |::. \ / :::'/
| / \::. | / :::'/
`--` \' `~~~ ':'/`
/ (
/ 0 _ 0 \
\/ \_/ \/
-== '.' | '.' ==-
/\ '-^-' /\
\ _ _ /
.-`-((\o/))-`-.
_ / //^\\ \ _
."o".( , .:::. , )."o".
|o o\\ \:::::/ //o o|
\ \\ |:::::| // /
\ \\__/:::::\__// /
\ .:.\ `':::'` /.:. /
\':: |_ _| ::'/
jgs `---` `"""""` `---`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment