Permalink
Browse files

add generic examples

  • Loading branch information...
staeiou committed Sep 18, 2016
1 parent 57315a6 commit cbb8b8f4ed365f1d11699b9512e4d08806b2bb2d
@@ -0,0 +1,17 @@
---
permalink: /non-menu-page/
title: "Page not in menu"
excerpt: "This is a page not in th emain menu"
author_profile: true
redirect_from:
- "/nmp/"
- "/nmp.html"
---
This is a page not in the menu. You can use markdown in this page.
Heading 1
======
Heading 2
======
@@ -0,0 +1,14 @@
---
layout: archive
title: "Portfolio"
permalink: /portfolio/
author_profile: true
---
{% include base_path %}
{% for post in site.portfolio %}
{% include archive-single.html %}
{% endfor %}
@@ -0,0 +1,12 @@
---
layout: archive
title: "Teaching"
permalink: /teaching/
author_profile: true
---
{% include base_path %}
{% for post in site.teaching reversed %}
{% include archive-single.html %}
{% endfor %}
@@ -0,0 +1,8 @@
---
title: "Portfolio item number 1"
excerpt: "Short description of portfolio item number 1"
collection: portfolio
date: 2016-01-01
---
This is an item in your portfolio. It can be have images or nice text. If you name the file .md, it will be parsed as markdown. If you name the file .html, it will be parsed as HTML.
@@ -0,0 +1,8 @@
---
title: "Portfolio item number 2"
excerpt: "Short description of portfolio item number 2"
collection: portfolio
date: 2016-03-01
---
This is an item in your portfolio. It can be have images or nice text. If you name the file .md, it will be parsed as markdown. If you name the file .html, it will be parsed as HTML.
@@ -0,0 +1,20 @@
---
title: 'Blog Post number 1'
date: 2012-08-14
permalink: /posts/2012/08/blog-post-1/
tags:
- cool posts
- category1
- category2
---
This is a sample blog post. Lorem ipsum I can't remember the rest of lorem ipsum and don't have an internet connection right now. Testing testing testing this blog post. Blog posts are cool.
Headings are cool
======
You can have many headings
======
Aren't headings cool?
------
@@ -0,0 +1,20 @@
---
title: 'Blog Post number 2'
date: 2013-08-14
permalink: /posts/2013/08/blog-post-2/
tags:
- cool posts
- category1
- category2
---
This is a sample blog post. Lorem ipsum I can't remember the rest of lorem ipsum and don't have an internet connection right now. Testing testing testing this blog post. Blog posts are cool.
Headings are cool
======
You can have many headings
======
Aren't headings cool?
------
@@ -0,0 +1,20 @@
---
title: 'Blog Post number 3'
date: 2014-08-14
permalink: /posts/2014/08/blog-post-3/
tags:
- cool posts
- category1
- category2
---
This is a sample blog post. Lorem ipsum I can't remember the rest of lorem ipsum and don't have an internet connection right now. Testing testing testing this blog post. Blog posts are cool.
Headings are cool
======
You can have many headings
======
Aren't headings cool?
------
@@ -0,0 +1,20 @@
---
title: 'Blog Post number 4'
date: 2015-08-14
permalink: /posts/2012/08/blog-post-4/
tags:
- cool posts
- category1
- category2
---
This is a sample blog post. Lorem ipsum I can't remember the rest of lorem ipsum and don't have an internet connection right now. Testing testing testing this blog post. Blog posts are cool.
Headings are cool
======
You can have many headings
======
Aren't headings cool?
------
@@ -0,0 +1,9 @@
---
title: "Paper Title Number 1"
category: publications
permalink: /publications/2009-10-01-paper-title-number-1
venue: "Journal 1"
excerpt: 'This paper is about the number 1. The number 2 is left for future work.'
date: 2009-10-01
citation: 'Your Name, You. (2009). "Paper Title Number 1." <i>Journal 1</i>. 1(1). http://academicpages.github.io/publications/paper1.pdf'
---
@@ -0,0 +1,17 @@
---
title: "Paper Title Number 2"
category: publications
permalink: /publications/2010-10-01-paper-title-number-2
venue: "Journal 1"
excerpt: '<i>Published in Journal 1</i><br/>This paper is about the number 2. The number 3 is left for future work.'
date: 2010-10-01
citation: 'Your Name, You. (2010). "Paper Title Number 2." <i>Journal 1</i>. 1(2). http://academicpages.github.io/publications/paper2.pdf'
---
This is where you put in an abstract, the full text of the paper, or both! This text will appear below some of the metadata. You can use markdown in this, like any posts.
Abstract
======
Paper
======
@@ -0,0 +1,17 @@
---
title: "Paper Title Number 3"
category: publications
permalink: /publications/2015-10-01-paper-title-number-3
venue: "Journal 1"
excerpt: '<i>Published in Journal 1</i><br/>This paper is about the number 3. The number 4 is left for future work.'
date: 2015-10-01
citation: 'Your Name, You. (2015). "Paper Title Number 3." <i>Journal 1</i>. 1(3). http://academicpages.github.io/publications/paper3.pdf'
---
This is where you put in an abstract, the full text of the paper, or both! This text will appear below some of the metadata. You can use markdown in this, like any posts.
Abstract
======
Paper
======
@@ -0,0 +1,128 @@
{
"cells": [
{
"cell_type": "code",
"execution_count": 48,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"import glob\n",
"!pip install getorg\n",
"import getorg"
]
},
{
"cell_type": "code",
"execution_count": 49,
"metadata": {
"collapsed": false
},
"outputs": [],
"source": [
"g = glob.glob(\"*.md\")"
]
},
{
"cell_type": "code",
"execution_count": 50,
"metadata": {
"collapsed": false
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"City, Country\n",
"City, Country\n",
"City, Country\n",
"City, Country\n"
]
}
],
"source": [
"for file in g:\n",
" with open(file, 'r') as f:\n",
" lines = f.read()\n",
" loc_start = lines.find('location: \"') + 11\n",
" lines_trim = lines[loc_start:]\n",
" loc_end = lines_trim.find('\"')\n",
" print(lines_trim[:loc_end])\n",
" \n"
]
},
{
"cell_type": "code",
"execution_count": 43,
"metadata": {
"collapsed": false
},
"outputs": [
{
"data": {
"text/plain": [
"175"
]
},
"execution_count": 43,
"metadata": {},
"output_type": "execute_result"
}
],
"source": []
},
{
"cell_type": "code",
"execution_count": 42,
"metadata": {
"collapsed": false
},
"outputs": [
{
"data": {
"text/plain": [
"10"
]
},
"execution_count": 42,
"metadata": {},
"output_type": "execute_result"
}
],
"source": []
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": []
}
],
"metadata": {
"anaconda-cloud": {},
"kernelspec": {
"display_name": "Python [Root]",
"language": "python",
"name": "Python [Root]"
},
"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.2"
}
},
"nbformat": 4,
"nbformat_minor": 0
}
@@ -0,0 +1,17 @@
---
title: "Talk 1 on Relevant Topic in Your Field"
collection: talks
talk_type: "Talk"
permalink: /talks/2012-03-01-talk-1
venue: "University 1, Department"
date: 2012-03-01
location: "City, Country"
---
This is a description of your talk, which is a markdown files that can be all markdown-ified like any other post. Yay markdown!
Headings
======
Subheadings
------
@@ -0,0 +1,17 @@
---
title: "Tutorial 1 on Relevant Topic in Your Field"
collection: talks
talk_type: "Tutorial"
permalink: /talks/2013-03-01-talk-1
venue: "University 1, Department"
date: 2013-03-01
location: "City, Country"
---
This is a description of your workshop, which is a markdown files that can be all markdown-ified like any other post. Yay markdown!
Headings
======
Subheadings
------
@@ -0,0 +1,17 @@
---
title: "Talk 2 on Relevant Topic in Your Field"
collection: talks
talk_type: "Talk"
permalink: /talks/2014-02-01-talk-2
venue: "University 1, Department"
date: 2014-02-01
location: "City, Country"
---
This is a description of your talk, which is a markdown files that can be all markdown-ified like any other post. Yay markdown!
Headings
======
Subheadings
------
Oops, something went wrong.

0 comments on commit cbb8b8f

Please sign in to comment.