Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
damianavila committed May 30, 2016
1 parent 0df3888 commit a20f5e7
Show file tree
Hide file tree
Showing 643 changed files with 27,362 additions and 36,358 deletions.
Binary file removed .doit.db
Binary file not shown.
720 changes: 720 additions & 0 deletions .doit.db.bak

Large diffs are not rendered by default.

Binary file added .doit.db.dat
Binary file not shown.
720 changes: 720 additions & 0 deletions .doit.db.dir

Large diffs are not rendered by default.

1,055 changes: 0 additions & 1,055 deletions .ipynb_checkpoints/48-themes-for-your-ipython-notebook-checkpoint.ipynb

This file was deleted.

231 changes: 110 additions & 121 deletions .ipynb_checkpoints/Start-checkpoint.ipynb
Original file line number Diff line number Diff line change
@@ -1,129 +1,118 @@
{
"metadata": {
"name": "",
"signature": "sha256:59aa2a601dea4869196c46cdd4efec67ead9fba0166ffe2ae3ca7fb85420d179"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
"cells": [
{
"cells": [
{
"cell_type": "heading",
"level": 1,
"metadata": {},
"source": [
"Adding a new post"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"title = \"Zen themes updated\""
],
"language": "python",
"metadata": {},
"outputs": [],
"prompt_number": 11
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"tags_list = ['python', 'IPython', 'nikola', 'blog', 'themes', 'zen']"
],
"language": "python",
"metadata": {},
"outputs": [],
"prompt_number": 12
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"tags = ', '.join(tags_list)\n",
"\n",
"!nikola new_post -f ipynb -t \"{title}\" --tags=\"{tags}\""
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"Creating New Post\r\n",
"-----------------\r\n",
"\r\n",
"Title: Zen themes updated\r\n",
"Scanning posts."
]
},
{
"output_type": "stream",
"stream": "stdout",
"text": [
"."
]
},
{
"output_type": "stream",
"stream": "stdout",
"text": [
"....done!\r\n",
"\u001b[33;01m[2014-05-30T16:03:18Z] WARNING: new_post: This compiler does not support one-file posts.\r\n",
"\u001b[39;49;00m\u001b[37m[2014-05-30T16:03:18Z] INFO: new_post: Your post's metadata is at: posts/zen-themes-updated.meta\r\n",
"\u001b[39;49;00m\u001b[37m[2014-05-30T16:03:18Z] INFO: new_post: Your post's text is at: posts/zen-themes-updated.ipynb\r\n",
"\u001b[39;49;00m"
]
},
{
"output_type": "stream",
"stream": "stdout",
"text": [
"\u001b[0m"
]
}
],
"prompt_number": 13
},
"cell_type": "markdown",
"metadata": {},
"source": [
"# Adding a new post"
]
},
{
"cell_type": "code",
"execution_count": 11,
"metadata": {
"collapsed": false
},
"outputs": [],
"source": [
"title = \"Zen themes updated\""
]
},
{
"cell_type": "code",
"execution_count": 12,
"metadata": {
"collapsed": false
},
"outputs": [],
"source": [
"tags_list = ['python', 'IPython', 'nikola', 'blog', 'themes', 'zen']"
]
},
{
"cell_type": "code",
"execution_count": 13,
"metadata": {
"collapsed": false
},
"outputs": [
{
"cell_type": "code",
"collapsed": false,
"input": [
"base_url = \"http://127.0.0.1:\"\n",
"port = 8888\n",
"name": "stdout",
"output_type": "stream",
"text": [
"Creating New Post\n",
"-----------------\n",
"\n",
"from nikola import utils\n",
"notebook = \"/notebooks/posts/\" + utils.slugify(unicode(title)) + \".ipynb\" \n",
"\n",
"url = base_url + str(port) + notebook\n",
"print url"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"http://127.0.0.1:8888/notebooks/posts/zen-themes-updated.ipynb\n"
]
}
],
"prompt_number": 14
},
"Title: Zen themes updated\n",
"Scanning posts......done!\n",
"\u001b[33;01m[2014-05-30T16:03:18Z] WARNING: new_post: This compiler does not support one-file posts.\n",
"\u001b[39;49;00m\u001b[37m[2014-05-30T16:03:18Z] INFO: new_post: Your post's metadata is at: posts/zen-themes-updated.meta\n",
"\u001b[39;49;00m\u001b[37m[2014-05-30T16:03:18Z] INFO: new_post: Your post's text is at: posts/zen-themes-updated.ipynb\n",
"\u001b[39;49;00m\u001b[0m"
]
}
],
"source": [
"tags = ', '.join(tags_list)\n",
"\n",
"!nikola new_post -f ipynb -t \"{title}\" --tags=\"{tags}\""
]
},
{
"cell_type": "code",
"execution_count": 14,
"metadata": {
"collapsed": false
},
"outputs": [
{
"cell_type": "code",
"collapsed": false,
"input": [],
"language": "python",
"metadata": {},
"outputs": []
"name": "stdout",
"output_type": "stream",
"text": [
"http://127.0.0.1:8888/notebooks/posts/zen-themes-updated.ipynb\n"
]
}
],
"metadata": {}
"source": [
"base_url = \"http://127.0.0.1:\"\n",
"port = 8888\n",
"\n",
"from nikola import utils\n",
"notebook = \"/notebooks/posts/\" + utils.slugify(unicode(title)) + \".ipynb\" \n",
"\n",
"url = base_url + str(port) + notebook\n",
"print url"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": false
},
"outputs": [],
"source": []
}
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.5.1"
}
},
"nbformat": 4,
"nbformat_minor": 0
}
Loading

0 comments on commit a20f5e7

Please sign in to comment.