Skip to content

Commit 88455b2

Browse files
committed
Record state of notebooks after each day's work
1 parent 2f945da commit 88455b2

File tree

131 files changed

+32553
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

131 files changed

+32553
-0
lines changed

Untitled0.ipynb

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
{
2+
"metadata": {
3+
"name": ""
4+
},
5+
"nbformat": 3,
6+
"nbformat_minor": 0,
7+
"worksheets": [
8+
{
9+
"cells": [
10+
{
11+
"cell_type": "code",
12+
"collapsed": false,
13+
"input": [
14+
"class NegatableString(str):\n",
15+
" def __rsub__(self, other):\n",
16+
" if other.endswith(self):\n",
17+
" return other[:len(other)-len(self)]\n",
18+
" else:\n",
19+
" raise ValueError(\"Cannot subtract {!r} from {!r}\".format(self, other))"
20+
],
21+
"language": "python",
22+
"metadata": {},
23+
"outputs": [],
24+
"prompt_number": 1
25+
},
26+
{
27+
"cell_type": "code",
28+
"collapsed": false,
29+
"input": [
30+
"x = NegatableString(\"abc\")\n",
31+
"\"123abc\" - x"
32+
],
33+
"language": "python",
34+
"metadata": {},
35+
"outputs": [
36+
{
37+
"metadata": {},
38+
"output_type": "pyout",
39+
"prompt_number": 2,
40+
"text": [
41+
"'123'"
42+
]
43+
}
44+
],
45+
"prompt_number": 2
46+
},
47+
{
48+
"cell_type": "code",
49+
"collapsed": false,
50+
"input": [
51+
"\"123def\" - x"
52+
],
53+
"language": "python",
54+
"metadata": {},
55+
"outputs": []
56+
},
57+
{
58+
"cell_type": "code",
59+
"collapsed": false,
60+
"input": [],
61+
"language": "python",
62+
"metadata": {},
63+
"outputs": []
64+
}
65+
],
66+
"metadata": {}
67+
}
68+
]
69+
}

Untitled1.ipynb

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
{
2+
"metadata": {
3+
"name": ""
4+
},
5+
"nbformat": 3,
6+
"nbformat_minor": 0,
7+
"worksheets": [
8+
{
9+
"cells": [
10+
{
11+
"cell_type": "code",
12+
"collapsed": false,
13+
"input": [
14+
"def f_no_positionals(*, this, that, the_other):\n",
15+
" print(this, \"|\", that, \"|\", the_other)"
16+
],
17+
"language": "python",
18+
"metadata": {},
19+
"outputs": [],
20+
"prompt_number": 1
21+
},
22+
{
23+
"cell_type": "code",
24+
"collapsed": false,
25+
"input": [
26+
"f_no_positionals(\"first\", \"second\" \"third\")"
27+
],
28+
"language": "python",
29+
"metadata": {},
30+
"outputs": [
31+
{
32+
"ename": "TypeError",
33+
"evalue": "f_no_positionals() takes 0 positional arguments but 2 were given",
34+
"output_type": "pyerr",
35+
"traceback": [
36+
"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m\n\u001b[0;31mTypeError\u001b[0m Traceback (most recent call last)",
37+
"\u001b[0;32m<ipython-input-2-744c59d41988>\u001b[0m in \u001b[0;36m<module>\u001b[0;34m()\u001b[0m\n\u001b[0;32m----> 1\u001b[0;31m \u001b[0mf_no_positionals\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m\"first\"\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m\"second\"\u001b[0m \u001b[0;34m\"third\"\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m",
38+
"\u001b[0;31mTypeError\u001b[0m: f_no_positionals() takes 0 positional arguments but 2 were given"
39+
]
40+
}
41+
],
42+
"prompt_number": 2
43+
}
44+
],
45+
"metadata": {}
46+
}
47+
]
48+
}
Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
{
2+
"metadata": {
3+
"name": ""
4+
},
5+
"nbformat": 3,
6+
"nbformat_minor": 0,
7+
"worksheets": [
8+
{
9+
"cells": [
10+
{
11+
"cell_type": "code",
12+
"collapsed": false,
13+
"input": [
14+
"print(\"Hello world!!!!!\")"
15+
],
16+
"language": "python",
17+
"metadata": {},
18+
"outputs": [
19+
{
20+
"output_type": "stream",
21+
"stream": "stdout",
22+
"text": [
23+
"Hello world!!!!!\n"
24+
]
25+
}
26+
],
27+
"prompt_number": 4
28+
},
29+
{
30+
"cell_type": "code",
31+
"collapsed": false,
32+
"input": [
33+
"print \"hello\""
34+
],
35+
"language": "python",
36+
"metadata": {},
37+
"outputs": [
38+
{
39+
"ename": "SyntaxError",
40+
"evalue": "invalid syntax (<ipython-input-5-8d90ecae1fe0>, line 1)",
41+
"output_type": "pyerr",
42+
"traceback": [
43+
"\u001b[0;36m File \u001b[0;32m\"<ipython-input-5-8d90ecae1fe0>\"\u001b[0;36m, line \u001b[0;32m1\u001b[0m\n\u001b[0;31m print \"hello\"\u001b[0m\n\u001b[0m ^\u001b[0m\n\u001b[0;31mSyntaxError\u001b[0m\u001b[0;31m:\u001b[0m invalid syntax\n"
44+
]
45+
}
46+
],
47+
"prompt_number": 5
48+
},
49+
{
50+
"cell_type": "markdown",
51+
"metadata": {},
52+
"source": [
53+
"### This is heading\n",
54+
"\n",
55+
"The quick brown fox jumps over the lazy dog."
56+
]
57+
},
58+
{
59+
"cell_type": "code",
60+
"collapsed": false,
61+
"input": [],
62+
"language": "python",
63+
"metadata": {},
64+
"outputs": []
65+
}
66+
],
67+
"metadata": {}
68+
}
69+
]
70+
}

code_nbs_after_day_1/MyDatabase.sql3

5 KB
Binary file not shown.

code_nbs_after_day_1/Untitled0.ipynb

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
{
2+
"metadata": {
3+
"name": ""
4+
},
5+
"nbformat": 3,
6+
"nbformat_minor": 0,
7+
"worksheets": [
8+
{
9+
"cells": [
10+
{
11+
"cell_type": "code",
12+
"collapsed": false,
13+
"input": [
14+
"%%script python2\n",
15+
"import sys\n",
16+
"print 'hello from Python %s' % sys.version"
17+
],
18+
"language": "python",
19+
"metadata": {},
20+
"outputs": [
21+
{
22+
"output_type": "stream",
23+
"stream": "stdout",
24+
"text": [
25+
"hello from Python 2.7.6 (default, Nov 19 2013, 03:12:29) \n",
26+
"[GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)]\n"
27+
]
28+
}
29+
],
30+
"prompt_number": 2
31+
},
32+
{
33+
"cell_type": "code",
34+
"collapsed": false,
35+
"input": [],
36+
"language": "python",
37+
"metadata": {},
38+
"outputs": []
39+
}
40+
],
41+
"metadata": {}
42+
}
43+
]
44+
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"metadata": {},
3+
"nbformat": 3,
4+
"nbformat_minor": 0,
5+
"worksheets": [
6+
{
7+
"cells": [
8+
{
9+
"cell_type": "markdown",
10+
"metadata": {},
11+
"source": [
12+
"## <img src=\"https://dl.dropboxusercontent.com/u/6117375/intermediate-notebooks/title_graphic.png\" /> accessing-ipython-on-the-cloud\n"
13+
]
14+
}
15+
],
16+
"metadata": {}
17+
}
18+
]
19+
}

0 commit comments

Comments
 (0)