improved logo

This commit is contained in:
didier amyot committed 2018-01-29 22:14:02 -05:00
1 parent bfaa3bea7d
commit fd9e2e2910
4 files changed
+379 -41

No files matched your search

+6 -13
View File
@@ -2,7 +2,7 @@
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"execution_count": 33,
"metadata": {},
"outputs": [
{
@@ -11,7 +11,7 @@
"#'user/gaussians"
]
},
"execution_count": 1,
"execution_count": 33,
"metadata": {},
"output_type": "execute_result"
}
@@ -21,12 +21,12 @@
"(import '(java.util Random))\n",
"\n",
"(def random (new Random 123))\n",
"(def gaussians (clojure.core/red #(.nextGaussian random)))"
"(def gaussians (clojure.core/repeatedly #(.nextGaussian random)))"
]
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": 34,
"metadata": {},
"outputs": [
{
@@ -35,21 +35,14 @@
"#'user/brown-movement"
]
},
"execution_count": 2,
"execution_count": 34,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"(def brown-movement (clojure.core/reductions + gaussians))"
"(def brown-movement (reductions + gaussians))"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
+47 -27
View File
@@ -2,33 +2,13 @@
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"execution_count": 2,
"metadata": {},
"outputs": [],
"source": [
"(require '[clojupyter.misc.display :as display])"
]
},
{
"cell_type": "code",
"execution_count": 2,
"metadata": {},
"outputs": [
{
"data": {
"text/latex": [
"$e^{i \\pi} + 1 = 0$"
]
},
"execution_count": 2,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"(display/make-latex \"$e^{i \\\\pi} + 1 = 0$\")"
]
},
{
"cell_type": "code",
"execution_count": 3,
@@ -36,8 +16,8 @@
"outputs": [
{
"data": {
"text/html": [
"<h3>Hello, from html</h3>"
"text/latex": [
"$e^{i \\pi} + 1 = 0$"
]
},
"execution_count": 3,
@@ -46,7 +26,7 @@
}
],
"source": [
"(display/make-html \"<h3>Hello, from html</h3>\")"
"(display/latex \"$e^{i \\\\pi} + 1 = 0$\")"
]
},
{
@@ -56,8 +36,8 @@
"outputs": [
{
"data": {
"text/markdown": [
"## Hello, from markdown"
"text/html": [
"<h3>Hello, from html</h3>"
]
},
"execution_count": 4,
@@ -66,7 +46,47 @@
}
],
"source": [
"(display/make-markdown \"## Hello, from markdown\")"
"(display/html \"<h3>Hello, from html</h3>\")"
]
},
{
"cell_type": "code",
"execution_count": 10,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"#function[clojupyter.misc.display/html]"
]
},
"execution_count": 10,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"display/html"
]
},
{
"cell_type": "code",
"execution_count": 8,
"metadata": {},
"outputs": [
{
"data": {
"text/markdown": [
"## Hello, from markdown"
]
},
"execution_count": 8,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"(display/markdown \"## Hello, from markdown\")"
]
},
{