Skip to content

Instantly share code, notes, and snippets.

View rtyler's full-sized avatar

R. Tyler Croy rtyler

View GitHub Profile
diff --git a/src/DummyTransaction.py b/src/DummyTransaction.py
index 029f6bf..2abc3bb 100644
--- a/src/DummyTransaction.py
+++ b/src/DummyTransaction.py
@@ -32,20 +32,40 @@ class DummyResponse(object):
def writeln(self, txt):
write(txt)
write('\n')
+
+ def safeConvert(self, chunk):
#!/usr/bin/env python
import HTMLParser
import os
import re
import subprocess
import sys
import urllib
PASTEBIN = 'http://pastebin'

Basic Slide Hudson Job(s)

PyUnit-based Jobs

Job Description

Most of the Slide Hudson jobs are actually site-deployments to various internal machines that bootstrap the entire site and then run our PyUnit suite against the site.

  • SCM: Git plugin (polls every minute) configured to be tied to one specific branch
@rtyler
rtyler / CHEP_2.rst
Created June 8, 2009 07:41
CHEP #2

(#2) Conditionalized #import behavior

CHEP:2
Title:Conditionalized #import behavior
Version: 1
Author: R Tyler Ballance <tyler at slide.com>
Status: Draft
Type:Standards Track

(#3) Exposing of super() and self via Template searchList

CHEP:3
Title:Exposing of super() and self via Template searchList
Version: 1
Author: R Tyler Ballance <tyler at slide.com>
Status: Draft
Type:Standards Track
class SuperDirective(OutputTest):
def test1(self):
tmpl1 = Template.compile(''' (99)
#def foo: this is base foo
#def bar(arg): super-''')
tmpl2 = tmpl1.subclass('''
#implements dummy
#def foo
#super
<?xml version="1.0"?>
<gtester>
<testbinary path="test_libecc">
<binary file="test_libecc"/>
<random-seed>R02S294d997074e0c2ed176651cbede1297b</random-seed>
<testcase path="/libecc/ecc_new_keypair">
<duration>0.000019</duration>
<status exit-status="0" n-forks="0" result="success"/>
</testcase>
<testcase path="/libecc/ecc_new_data">
static PyObject *new_keypair(PyObject *self, PyObject *args, PyObject *kwargs)
{
char *pubkey, *privkey;
PyObject *temp_state;
ECC_State state;
if (!PyArg_ParseTuple(args, "ssO", pubkey, privkey, temp_state))
return NULL;
<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<!-- I can't believe I have to do this -->
<!-- Based on this code:
http://geekswithblogs.net/Erik/archive/2008/04/01/120915.aspx
-->
<xsl:template name="strreplace">
<xsl:param name="string"/>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <gcrypt.h>
#include <glib.h>
#define DEFAULT_DATA "This message will be signed\n"
#define DEFAULT_SIG "$HPI?t(I*1vAYsl$|%21WXND=6Br*[>k(OR9B!GOwHqL0s+3Uq"