Kaynağa Gözat

Updates; fixing some XHTML errors as well.

master
Ben Kurtovic 12 yıl önce
ebeveyn
işleme
3275fd183a
5 değiştirilmiş dosya ile 33 ekleme ve 14 silme
  1. +1
    -1
      README.md
  2. +1
    -1
      _layouts/base.html
  3. +0
    -1
      _layouts/home.html
  4. +27
    -9
      index.html
  5. +4
    -2
      js/tweets.js

+ 1
- 1
README.md Dosyayı Görüntüle

@@ -8,7 +8,7 @@ permission.
LICENSE
-------

Copyright (C) 2011-2012 by Ben Kurtovic <ben.kurtovic@verizon.net>
Copyright (C) 2011-2012 Ben Kurtovic <ben.kurtovic@verizon.net>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal


+ 1
- 1
_layouts/base.html Dosyayı Görüntüle

@@ -9,7 +9,7 @@
<script src="/js/tweets.js" type="text/javascript"></script>
</head>
<body onload="load_tweets();">
<div id="forkme">
<div id="forkme-box">
<a href="http://github.com/earwig">
<img id="forkme" src="/images/forkme.png" title="Fork me on GitHub" alt="Fork me on GitHub" />
</a>


+ 0
- 1
_layouts/home.html Dosyayı Görüntüle

@@ -59,7 +59,6 @@ layout: base
<p>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.</p>
<h2 class="index-header">Tweets</h2>
<ul id="tweets">
<div id="twitter"></div>
<li><a href="http://twitter.com/the_earwig">More...</a></li>
</ul>
<h2 class="index-header">Posts</h2>


+ 27
- 9
index.html Dosyayı Görüntüle

@@ -5,16 +5,25 @@ title: Home

<div class="project">
<div class="project-head">
<a class="invert" href="http://github.com/earwig/earwigbot">earwigbot</a> <span class="description"><i>(Python // started April 2009)</i></span>
<a class="invert" href="https://github.com/earwig/earwigbot">earwigbot</a> <span class="description"><i>(Python // started April 2009)</i></span>
</div>
<div class="project-body description">
<i>EarwigBot</i> is a <a href="http://python.org/">Python</a> robot that edits <a href="http://en.wikipedia.org/">Wikipedia</a> and interacts with people over <a href="http://en.wikipedia.org/wiki/Internet_Relay_Chat">IRC</a>.
<i>EarwigBot</i> is a <a href="http://python.org/">Python</a> robot that edits <a href="http://en.wikipedia.org/">Wikipedia</a> and interacts with people over <a href="http://en.wikipedia.org/wiki/Internet_Relay_Chat">IRC</a>. It has <a href="https://github.com/earwig/earwigbot-plugins">a separate repository for plugins</a>.
</div>
</div>
<div class="divider"></div>
<div class="project">
<div class="project-head">
<a class="invert" href="http://github.com/earwig/toolserver">toolserver</a> <span class="description"><i>(Web // started July 2009)</i></span>
<a class="invert" href="https://github.com/earwig/mwparserfromhell">mwparserfromhell</a> <span class="description"><i>(Python // started May 2012)</i></span>
</div>
<div class="project-body description">
<i>MWParserFromHell</i> is an easy-to-use and outrageously powerful <a href="http://python.org/">Python</a> parser for <a href="http://mediawiki.org/">MediaWiki</a> wikicode.
</div>
</div>
<div class="divider"></div>
<div class="project">
<div class="project-head">
<a class="invert" href="https://github.com/earwig/toolserver">toolserver</a> <span class="description"><i>(Web // started July 2009)</i></span>
</div>
<div class="project-body description">
A collection of <a href="http://en.wikipedia.org/">Wikipedia</a>-related web tools and associated documentation running on the <a href="http://toolserver.org/">Wikimedia Toolserver</a>.
@@ -23,16 +32,16 @@ title: Home
<div class="divider"></div>
<div class="project">
<div class="project-head">
<a class="invert" href="http://github.com/earwig/music-quizzer">music-quizzer</a> <span class="description"><i>(Python // started May 2011)</i></span>
<a class="invert" href="https://github.com/earwig/earwig.github.com">earwig.github.com</a> <span class="description"><i>(Web // started June 2011)</i></span>
</div>
<div class="project-body description">
<i>MusicQuizzer</i> is a <a href="http://en.wikipedia.org/wiki/Tk_(framework)">Tk</a>-based program that can help you prepare for your music final with randomly-generated listening quizzes.
<i>earwig.github.com</i> is... well... what you're viewing right now. In source code form!
</div>
</div>
<div class="divider"></div>
<div class="project">
<div class="project-head">
<a class="invert" href="http://github.com/earwig/git-repo-updater">git-repo-updater</a> <span class="description"><i>(Python // started June 2011)</i></span>
<a class="invert" href="https://github.com/earwig/git-repo-updater">git-repo-updater</a> <span class="description"><i>(Python // started June 2011)</i></span>
</div>
<div class="project-body description">
<i>Gitup</i> is a console script that allows you to easily pull to multiple git repositories at once.
@@ -41,18 +50,27 @@ title: Home
<div class="divider"></div>
<div class="project">
<div class="project-head">
<a class="invert" href="http://github.com/earwig/earwig.github.com">earwig.github.com</a> <span class="description"><i>(Web // started June 2011)</i></span>
<a class="invert" href="https://github.com/earwig/music-quizzer">music-quizzer</a> <span class="description"><i>(Python // started May 2011)</i></span>
</div>
<div class="project-body description">
<i>earwig.github.com</i> is... well... what you're viewing right now. In source code form!
<i>MusicQuizzer</i> is a <a href="http://en.wikipedia.org/wiki/Tk_(framework)">Tk</a>-based program that can help you prepare for your music final with randomly-generated listening quizzes.
</div>
</div>
<div class="divider"></div>
<div class="project">
<div class="project-head">
<a class="invert" href="http://github.com/earwig/lobo">lobo</a> <span class="description"><i>(NetLogo // started December 2011)</i></span>
<a class="invert" href="https://github.com/earwig/lobo">lobo</a> <span class="description"><i>(NetLogo // started December 2011)</i></span>
</div>
<div class="project-body description">
<i>Lobo</i> is Logo Bolo: a re-envisioning of <a href="http://en.wikipedia.org/wiki/Bolo_(video_game)">the classic tank game</a> by Stuart Cheshire in NetLogo.
</div>
</div>
<div class="divider"></div>
<div class="project">
<div class="project-head">
<a class="invert" href="https://github.com/earwig/func-smash">func-smash</a> <span class="description"><i>(Python // started April 2012)</i></span>
</div>
<div class="project-body description">
<i>FuncSmash</i>, a small for-the-hell-of-it project, tries to generate random Python functions using Markov chains.
</div>
</div>

+ 4
- 2
js/tweets.js Dosyayı Görüntüle

@@ -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 = '<li class="post">' + fmt_text(tweet["text"]) + "<br />";
t += '<a href="http://twitter.com/' + tweet["user"]["screen_name"] + '/status/' + tweet["id_str"] + '">'
t += '<span class="tweet description">' + fmt_date(tweet["created_at"]) + "</span>";
t += "</a></li>";
element.innerHTML += t;
addedHTML += t;
}
element.innerHTML = addedHTML + element.innerHTML;
}

function fmt_text(t) {


Yükleniyor…
İptal
Kaydet