My Recent Pastes (13 and counting)

Pastes by chris (13 and counting)

Below are the 13 most recent pasties by chris.

July 11, 2008
4:42PM EDT
by chris

class NilClass
  def ==(other)
    true
  end
end

July 17, 2007
5:49PM EDT
by Chris

Oscar vet appt.

November 09, 2006
3:13PM EDT
by chris

from genshi.core import Attrs, QName
from genshi.core import START, START_NS, END, END_NS, DOCTYPE, TEXT
from genshi.path import Path
from genshi.template.eval import Expression
from genshi.template.inline import _expand, _expand_text

November 08, 2006
12:11PM EDT
by chris

<ol py:def="expand(items)">
  <li py:for="idx, item in enumerate(items)"
      class="${idx % 2 and 'odd' or 'even'}">${item.label}
    <py:if test="items.childs">${expand(item.childs)}</py:if>
  </li>

November 08, 2006
12:06PM EDT
by chris

<ol py:def="expand(items)">
  <li py:for="item in items">${item.label}
    ${expand(item.childs)}
  </li>
</ol>

November 05, 2006
5:27PM EDT
by chris

Index: /Users/chris/Projekte/Trac/branches/0.10-stable/trac/web/api.py
===================================================================
--- /Users/chris/Projekte/Trac/branches/0.10-stable/trac/web/api.py        (revision 4146)
+++ /Users/chris/Projekte/Trac/branches/0.10-stable/trac/web/api.py        (working copy)
@@ -351,7 +351,10 @@

November 02, 2006
4:18PM EDT
by chris

Index: trac/util/html.py
===================================================================
--- trac/util/html.py   (revision 4120)
+++ trac/util/html.py   (working copy)
@@ -315,7 +315,7 @@

October 25, 2006
3:16PM EDT
by chris

Index: trac/web/_fcgi.py
===================================================================
--- trac/web/_fcgi.py   (revision 3813)
+++ trac/web/_fcgi.py   (working copy)
@@ -1278,6 +1278,8 @@

October 19, 2006
6:43PM EDT
by chris

  jQuery.loadStylesheet = function(href, type) {
    type = type || "text/css";
    $(document).ready(function() {
      if (document.createStylesheet) { // MSIE
        document.createStyleSheet(href);

October 12, 2006
8:17AM EDT
by chris

Index: genshi/tests/template.py
===================================================================
--- genshi/tests/template.py        (revision 346)
+++ genshi/tests/template.py        (working copy)
@@ -1164,7 +1164,23 @@

October 12, 2006
8:15AM EDT
by chris

+                # Make sure that the directory containing the including

October 12, 2006
7:04AM EDT
by chris

Index: genshi/template.py
===================================================================
--- genshi/template.py        (revision 346)
+++ genshi/template.py        (working copy)
@@ -1314,9 +1314,10 @@

October 12, 2006
6:53AM EDT
by chris

Index: genshi/template.py
===================================================================
--- genshi/template.py        (revision 346)
+++ genshi/template.py        (working copy)
@@ -1314,9 +1314,10 @@