From 3275fd183a68941b2416ad8bd3efd815c0c65056 Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Fri, 6 Jul 2012 23:36:22 -0400 Subject: [PATCH] Updates; fixing some XHTML errors as well. --- README.md | 2 +- _layouts/base.html | 2 +- _layouts/home.html | 1 - index.html | 36 +++++++++++++++++++++++++++--------- js/tweets.js | 6 ++++-- 5 files changed, 33 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index 7e35399..aa37634 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ permission. LICENSE ------- -Copyright (C) 2011-2012 by Ben Kurtovic +Copyright (C) 2011-2012 Ben Kurtovic Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/_layouts/base.html b/_layouts/base.html index 26280f3..5338b06 100644 --- a/_layouts/base.html +++ b/_layouts/base.html @@ -9,7 +9,7 @@ -
+
Fork me on GitHub diff --git a/_layouts/home.html b/_layouts/home.html index 359835f..546e8df 100644 --- a/_layouts/home.html +++ b/_layouts/home.html @@ -59,7 +59,6 @@ layout: base

On this page, you can find my identities on a few other sites, check out the projects I'm working on, and read some of my incessant ramblings in blog form.

Tweets

Posts

diff --git a/index.html b/index.html index 1deba56..4e7c529 100644 --- a/index.html +++ b/index.html @@ -5,16 +5,25 @@ title: Home
- earwigbot (Python // started April 2009) + earwigbot (Python // started April 2009)
- EarwigBot is a Python robot that edits Wikipedia and interacts with people over IRC. + EarwigBot is a Python robot that edits Wikipedia and interacts with people over IRC. It has a separate repository for plugins.
- toolserver (Web // started July 2009) + mwparserfromhell (Python // started May 2012) +
+
+ MWParserFromHell is an easy-to-use and outrageously powerful Python parser for MediaWiki wikicode. +
+
+
+
+
+ toolserver (Web // started July 2009)
A collection of Wikipedia-related web tools and associated documentation running on the Wikimedia Toolserver. @@ -23,16 +32,16 @@ title: Home
- music-quizzer (Python // started May 2011) + earwig.github.com (Web // started June 2011)
- MusicQuizzer is a Tk-based program that can help you prepare for your music final with randomly-generated listening quizzes. + earwig.github.com is... well... what you're viewing right now. In source code form!
- git-repo-updater (Python // started June 2011) + git-repo-updater (Python // started June 2011)
Gitup is a console script that allows you to easily pull to multiple git repositories at once. @@ -41,18 +50,27 @@ title: Home
- earwig.github.com (Web // started June 2011) + music-quizzer (Python // started May 2011)
- earwig.github.com is... well... what you're viewing right now. In source code form! + MusicQuizzer is a Tk-based program that can help you prepare for your music final with randomly-generated listening quizzes.
- lobo (NetLogo // started December 2011) + lobo (NetLogo // started December 2011)
Lobo is Logo Bolo: a re-envisioning of the classic tank game by Stuart Cheshire in NetLogo.
+
+
+
+ func-smash (Python // started April 2012) +
+
+ FuncSmash, a small for-the-hell-of-it project, tries to generate random Python functions using Markov chains. +
+
diff --git a/js/tweets.js b/js/tweets.js index 8340c1b..8cc3a44 100644 --- a/js/tweets.js +++ b/js/tweets.js @@ -1,5 +1,5 @@ function load_tweets() { - var element = document.getElementById("twitter"); + var element = document.getElementById("tweets"); if (element) { var callback = "like_a_boss"; var username = "the_earwig"; @@ -20,14 +20,16 @@ function load_tweets() { } function show_tweets(tweets, element) { + var addedHTML = ""; for (t in tweets) { var tweet = tweets[t]; var t = '
  • ' + fmt_text(tweet["text"]) + "
    "; t += '' t += '' + fmt_date(tweet["created_at"]) + ""; t += "
  • "; - element.innerHTML += t; + addedHTML += t; } + element.innerHTML = addedHTML + element.innerHTML; } function fmt_text(t) {