mirror of
https://github.com/correl/correl.github.io.git
synced 2024-12-29 11:09:24 +00:00
Integrated blog posts
This commit is contained in:
parent
eba7212258
commit
5b1e4f9bc7
7 changed files with 110 additions and 77 deletions
7
_includes/footer.html
Normal file
7
_includes/footer.html
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
</section>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<!--[if !IE]><script>fixScale(document);</script><![endif]-->
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
37
_includes/header.html
Normal file
37
_includes/header.html
Normal file
|
@ -0,0 +1,37 @@
|
||||||
|
<!doctype html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<meta http-equiv="X-UA-Compatible" content="chrome=1">
|
||||||
|
<title>correl.phoenixinquis.net by correl</title>
|
||||||
|
<link rel="stylesheet" href="/stylesheets/styles.css">
|
||||||
|
<link rel="stylesheet" href="/stylesheets/blog.css">
|
||||||
|
<link rel="stylesheet" href="/stylesheets/pygment_trac.css">
|
||||||
|
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
|
||||||
|
<script src="/javascripts/respond.js"></script>
|
||||||
|
<!--[if lt IE 9]>
|
||||||
|
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
|
||||||
|
<![endif]-->
|
||||||
|
<!--[if lt IE 8]>
|
||||||
|
<link rel="stylesheet" href="stylesheets/ie.css">
|
||||||
|
<![endif]-->
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
|
||||||
|
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div id="header">
|
||||||
|
<nav>
|
||||||
|
<li class="fork"><a href="https://github.com/correl">View On GitHub</a></li>
|
||||||
|
</nav>
|
||||||
|
</div><!-- end header -->
|
||||||
|
|
||||||
|
<div class="wrapper">
|
||||||
|
|
||||||
|
<section>
|
||||||
|
<div id="title">
|
||||||
|
<h1>correl.phoenixinquis.net</h1>
|
||||||
|
<p>projects and coding adventures</p>
|
||||||
|
<hr>
|
||||||
|
<span class="credits left">Project maintained by <a href="https://github.com/correl">correl</a></span>
|
||||||
|
<span class="credits right">Hosted on GitHub Pages — Theme by <a href="https://twitter.com/michigangraham">mattgraham</a></span>
|
||||||
|
</div>
|
5
_layouts/default.html
Normal file
5
_layouts/default.html
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
{% include header.html %}
|
||||||
|
|
||||||
|
{{ content }}
|
||||||
|
|
||||||
|
{% include footer.html %}
|
18
_layouts/post.html
Normal file
18
_layouts/post.html
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
{% include header.html %}
|
||||||
|
|
||||||
|
<article>
|
||||||
|
<header>
|
||||||
|
<h1>{{ page.title }}</h1>
|
||||||
|
<hr />
|
||||||
|
<span class="date">{{ page.date | date_to_long_string }}</span>
|
||||||
|
</header>
|
||||||
|
<div style="clear: both;"></div>
|
||||||
|
|
||||||
|
{{ content }}
|
||||||
|
</article>
|
||||||
|
|
||||||
|
<footer>
|
||||||
|
<hr />
|
||||||
|
<a href="/">Back to home</a>
|
||||||
|
</footer>
|
||||||
|
{% include footer.html %}
|
|
@ -10,7 +10,7 @@ tags:
|
||||||
- python
|
- python
|
||||||
---
|
---
|
||||||
|
|
||||||
# Part One: Lambdas? In my Python?
|
## Part One: Lambdas? In my Python?
|
||||||
|
|
||||||
Over the past few months, I've decided to take a stab at learning some
|
Over the past few months, I've decided to take a stab at learning some
|
||||||
functional programming. I'd been doing python for a few years (and
|
functional programming. I'd been doing python for a few years (and
|
||||||
|
@ -22,7 +22,7 @@ well.
|
||||||
|
|
||||||
<!--more-->
|
<!--more-->
|
||||||
|
|
||||||
## Functions are objects, too
|
### Functions are objects, too
|
||||||
|
|
||||||
Having graduated to python from PHP and C/C++, perhaps the biggest new thing to
|
Having graduated to python from PHP and C/C++, perhaps the biggest new thing to
|
||||||
wrap my head around (besides readable code, whitespace-as-syntax,
|
wrap my head around (besides readable code, whitespace-as-syntax,
|
||||||
|
@ -52,7 +52,7 @@ ucase_people = map(lambda name: name.upper(), ["Joe", "Mary", "Zach"])
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
## Abstracting behaviour
|
### Abstracting behaviour
|
||||||
|
|
||||||
You'll find you can now start abstracting away common idioms. For
|
You'll find you can now start abstracting away common idioms. For
|
||||||
example, you probably very often find yourself looping over some list of items,
|
example, you probably very often find yourself looping over some list of items,
|
||||||
|
@ -112,7 +112,7 @@ music = [file.upper() for file in stuff if file.endswith(".pls")]
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
## Tip of the iceberg
|
### Tip of the iceberg
|
||||||
|
|
||||||
This is just a very small taste of functional programming concepts. Later, I'll
|
This is just a very small taste of functional programming concepts. Later, I'll
|
||||||
introduce a couple of functional languages, and explain what sets them apart
|
introduce a couple of functional languages, and explain what sets them apart
|
||||||
|
|
87
index.html
87
index.html
|
@ -1,75 +1,16 @@
|
||||||
<!doctype html>
|
---
|
||||||
<html>
|
layout: default
|
||||||
<head>
|
title: correl.phoenixinquis.net
|
||||||
<meta charset="utf-8">
|
---
|
||||||
<meta http-equiv="X-UA-Compatible" content="chrome=1">
|
|
||||||
<title>correl.phoenixinquis.net by correl</title>
|
|
||||||
<link rel="stylesheet" href="stylesheets/styles.css">
|
|
||||||
<link rel="stylesheet" href="stylesheets/pygment_trac.css">
|
|
||||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
|
|
||||||
<script src="javascripts/respond.js"></script>
|
|
||||||
<!--[if lt IE 9]>
|
|
||||||
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
|
|
||||||
<![endif]-->
|
|
||||||
<!--[if lt IE 8]>
|
|
||||||
<link rel="stylesheet" href="stylesheets/ie.css">
|
|
||||||
<![endif]-->
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
|
|
||||||
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<div id="header">
|
|
||||||
<nav>
|
|
||||||
<li class="fork"><a href="https://github.com/correl">View On GitHub</a></li>
|
|
||||||
</nav>
|
|
||||||
</div><!-- end header -->
|
|
||||||
|
|
||||||
<div class="wrapper">
|
|
||||||
|
|
||||||
<section>
|
|
||||||
<div id="title">
|
|
||||||
<h1>correl.phoenixinquis.net</h1>
|
|
||||||
<p>projects and coding adventures</p>
|
|
||||||
<hr>
|
|
||||||
<span class="credits left">Project maintained by <a href="https://github.com/correl">correl</a></span>
|
|
||||||
<span class="credits right">Hosted on GitHub Pages — Theme by <a href="https://twitter.com/michigangraham">mattgraham</a></span>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<h3>
|
|
||||||
<a name="welcome-to-github-pages" class="anchor" href="#welcome-to-github-pages"><span class="octicon octicon-link"></span></a>Welcome to GitHub Pages.</h3>
|
|
||||||
|
|
||||||
<p>This automatic page generator is the easiest way to create beautiful pages for all of your projects. Author your page content here using GitHub Flavored Markdown, select a template crafted by a designer, and publish. After your page is generated, you can check out the new branch:</p>
|
|
||||||
|
|
||||||
<pre><code>$ cd your_repo_root/repo_name
|
|
||||||
$ git fetch origin
|
|
||||||
$ git checkout gh-pages
|
|
||||||
</code></pre>
|
|
||||||
|
|
||||||
<p>If you're using the GitHub for Mac, simply sync your repository and you'll see the new branch.</p>
|
|
||||||
|
|
||||||
<h3>
|
|
||||||
<a name="designer-templates" class="anchor" href="#designer-templates"><span class="octicon octicon-link"></span></a>Designer Templates</h3>
|
|
||||||
|
|
||||||
<p>We've crafted some handsome templates for you to use. Go ahead and continue to layouts to browse through them. You can easily go back to edit your page before publishing. After publishing your page, you can revisit the page generator and switch to another theme. Your Page content will be preserved if it remained markdown format.</p>
|
|
||||||
|
|
||||||
<h3>
|
|
||||||
<a name="rather-drive-stick" class="anchor" href="#rather-drive-stick"><span class="octicon octicon-link"></span></a>Rather Drive Stick?</h3>
|
|
||||||
|
|
||||||
<p>If you prefer to not use the automatic generator, push a branch named <code>gh-pages</code> to your repository to create a page manually. In addition to supporting regular HTML content, GitHub Pages support Jekyll, a simple, blog aware static site generator written by our own Tom Preston-Werner. Jekyll makes it easy to create site-wide headers and footers without having to copy them across every page. It also offers intelligent blog support and other advanced templating features.</p>
|
|
||||||
|
|
||||||
<h3>
|
|
||||||
<a name="authors-and-contributors" class="anchor" href="#authors-and-contributors"><span class="octicon octicon-link"></span></a>Authors and Contributors</h3>
|
|
||||||
|
|
||||||
<p>You can <a href="https://github.com/blog/821" class="user-mention">@mention</a> a GitHub username to generate a link to their profile. The resulting <code><a></code> element will link to the contributor's GitHub Profile. For example: In 2007, Chris Wanstrath (<a href="https://github.com/defunkt" class="user-mention">@defunkt</a>), PJ Hyett (<a href="https://github.com/pjhyett" class="user-mention">@pjhyett</a>), and Tom Preston-Werner (<a href="https://github.com/mojombo" class="user-mention">@mojombo</a>) founded GitHub.</p>
|
|
||||||
|
|
||||||
<h3>
|
|
||||||
<a name="support-or-contact" class="anchor" href="#support-or-contact"><span class="octicon octicon-link"></span></a>Support or Contact</h3>
|
|
||||||
|
|
||||||
<p>Having trouble with Pages? Check out the documentation at <a href="http://help.github.com/pages">http://help.github.com/pages</a> or contact <a href="mailto:support@github.com">support@github.com</a> and we’ll help you sort it out.</p>
|
|
||||||
</section>
|
|
||||||
|
|
||||||
|
{% for post in site.posts %}
|
||||||
|
<article>
|
||||||
|
<h1><a href="{{post.url }}">{{ post.title }}</a></h1>
|
||||||
|
<div class="excerpt">
|
||||||
|
{{ post.excerpt }}
|
||||||
</div>
|
</div>
|
||||||
<!--[if !IE]><script>fixScale(document);</script><![endif]-->
|
<footer>
|
||||||
|
<a href="{{ post.url }}">Read more …</a>
|
||||||
</body>
|
</footer>
|
||||||
</html>
|
</article>
|
||||||
|
{% endfor %}
|
||||||
|
|
25
stylesheets/blog.css
Normal file
25
stylesheets/blog.css
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
article {
|
||||||
|
margin-bottom: 1.5em;
|
||||||
|
}
|
||||||
|
|
||||||
|
article .excerpt,
|
||||||
|
article footer {
|
||||||
|
padding-left: 1.5em;
|
||||||
|
}
|
||||||
|
|
||||||
|
article header {
|
||||||
|
margin-bottom: 4em;
|
||||||
|
}
|
||||||
|
article header hr {
|
||||||
|
height: 1px;
|
||||||
|
border-bottom: 1px dashed #696969;
|
||||||
|
Background: none;
|
||||||
|
}
|
||||||
|
article .date {
|
||||||
|
float: left;
|
||||||
|
font-size: 11px;
|
||||||
|
font-family: "OpenSansRegular", "Helvetica Neue", Helvetica, Arial, sans-serif;
|
||||||
|
font-weight: normal;
|
||||||
|
color: #696969;
|
||||||
|
margin-top: -10px;
|
||||||
|
}
|
Loading…
Reference in a new issue