Last active
September 7, 2016 07:18
-
-
Save jmettes/9d779264d0f1444c707a7fcd6289604e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"metadata": { | |
"language": "haskell", | |
"signature": "sha256:3a75e25ca2a6fdadba8b1f6d496df6b6dd55f6c6ff49ff76b1e6bceb0bbfe265" | |
}, | |
"nbformat": 3, | |
"nbformat_minor": 0, | |
"worksheets": [ | |
{ | |
"cells": [ | |
{ | |
"cell_type": "markdown", | |
"metadata": { | |
"hidden": false | |
}, | |
"source": [ | |
"\n", | |
"# Welcome to IHaskell Notebook\n", | |
"This is a literate code document, allowing you to mix code with rich media documentation.\n", | |
"\n", | |
"You can see some examples on the [Kronos Haskell website](http://www.kronosnotebook.com/haskell).\n", | |
"\n", | |
"## Quick Action Guide\n", | |
"**Edit a cell:** `Enter` (or double click)\n", | |
"\n", | |
"**Stop Editing:** `Esc`\n", | |
"\n", | |
"**Make a new cell:** `a` or `b` (above or below).\n", | |
"\n", | |
"**Make the Cell Code or Markdown:** `y` (code) or `m` (markdown)\n", | |
"\n", | |
"**Evaluate a cell:** `Shift-Enter` or `Ctrl-Enter`.\n", | |
"\n", | |
"**Find More Actions:** `h`\n", | |
"\n", | |
"## Markdown\n", | |
"You can use [Markdown syntax](https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet)\n", | |
"for every Markdown cell. This allows you to embed\n", | |
"- headers,\n", | |
"- lists,\n", | |
"- images,\n", | |
"- and so on.\n", | |
"\n", | |
"## Mathematics\n", | |
"In addition to standard Markdown, you can use LaTeX-flavored math:\n", | |
"\n", | |
"```tex\n", | |
"\\begin{align*}\n", | |
" a &= b + c(z) \\\\\n", | |
" f &= \\nabla \\cdot a^2\n", | |
"\\end{align*}\n", | |
"```\n", | |
"\\begin{align*}\n", | |
" a &= b + c(z) \\\\\n", | |
" f &= \\nabla \\cdot a^2\n", | |
"\\end{align*}\n", | |
"\n", | |
"<hr/>\n", | |
"\n", | |
"```tex\n", | |
"We now compute $a + b = c$.\n", | |
"```\n", | |
"We now compute $a + b = c$.\n", | |
"\n", | |
"<hr/>\n", | |
"\n", | |
"```tex\n", | |
"Sometimes, you want equations:\n", | |
"$$a + b = \\nabla^2 c.$$\n", | |
"```\n", | |
"Sometimes, you want equations:\n", | |
"$$a + b = \\nabla^2 c.$$\n", | |
"\n", | |
"## More\n", | |
"Press `h` in the IHaskell notebook to get a list of useful keyboard shortcuts.\n", | |
"\n", | |
"Learn more on the [IPython website](http://ipython.org/ipython-doc/2/notebook/index.html).\n" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"collapsed": false, | |
"input": [ | |
"-- In code cells, you can write Haskell code.\n", | |
"-- Press Shift-Enter or Ctrl-Enter to run and evaluate the code.\n", | |
"-- Shift-Enter creates a new cell after running your code.\n", | |
"fibs = 0 : 1 : zipWith (+) fibs (tail fibs)\n", | |
"let fifth = fibs !! 5\n", | |
"print fifth" | |
], | |
"language": "python", | |
"metadata": { | |
"hidden": false | |
}, | |
"outputs": [ | |
{ | |
"metadata": {}, | |
"output_type": "display_data", | |
"text": [ | |
"5" | |
] | |
} | |
], | |
"prompt_number": 1 | |
}, | |
{ | |
"cell_type": "markdown", | |
"metadata": { | |
"hidden": false | |
}, | |
"source": [ | |
"<script src=\"https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.0/core.js\"></script>" | |
] | |
}, | |
{ | |
"cell_type": "markdown", | |
"metadata": { | |
"hidden": false | |
}, | |
"source": [ | |
"<h1>hello</h1>\n", | |
"<div id=\"hello\"></div>\n", | |
"<script>\n", | |
"document.getElementById('hello').innerHTML=\"hi\";\n", | |
"</script>" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"collapsed": false, | |
"input": [], | |
"language": "python", | |
"metadata": { | |
"hidden": false | |
}, | |
"outputs": [] | |
} | |
], | |
"metadata": {} | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment