This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
layout: post | |
title: Writing a Category Index Page for Jekyll | |
categories: [blogging, jekyll] | |
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
layout: page | |
title: Posts by Category | |
--- | |
{% capture get_items %} | |
{% for cat in site.categories %} | |
{{ cat | first | replace: ' ', '_' }} | |
{% endfor %} | |
{% endcapture %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import urllib | |
import urllib2 | |
import base64 | |
class SimpleTwitterUpdate(): | |
def __init__(self, userName, passWord): | |
self.username = userName | |
self.password = passWord | |
self.twitterUrl = 'http://twitter.com/statuses/update.xml' | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import gdata.spreadsheet.service | |
import gdata.alt.appengine | |
class StockData(): | |
def __init__(self, runningOnAppEngine): | |
self.client = gdata.spreadsheet.service.SpreadsheetsService() | |
if (runningOnAppEngine): | |
gdata.alt.appengine.run_on_appengine(self.client) | |
self.client.email = "johnp@bravelocation.com" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Slideshow courtesy of http://snook.ca/archives/javascript/simplest-jquery-slideshow - with slight amendment to add in pause/play functionality --> | |
<style> | |
.fadein { position:relative; height:300px; width:500px; } | |
.fadein img { position:absolute; left:0; top:0; } | |
</style> | |
<script> | |
var enableSlideshow = true; |