Skip to content

Instantly share code, notes, and snippets.

View brindy's full-sized avatar
🪂

Christopher Brind brindy

🪂
View GitHub Profile
@brindy
brindy / emmaantjunit.xml
Created May 29, 2009 14:40
Sample JUnit ant task configuration to use Emma for code coverage on the fly.
<junit fork="yes" printsummary="yes">
<classpath refid="emma.classpath" />
<!-- general stuff -->
<classpath>
<!-- the test classes. -->
<pathelement location="bin" />
<!-- contains junit and other dependencies -->
@brindy
brindy / SampleListAdapter.java
Created May 6, 2009 20:20
A sample custom ListAdapter for Android
setListAdapter(new BaseAdapter() {
public int getCount() {
return expenses.size();
}
public Object getItem(int position) {
return expenses.get(position);
}