This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class ActivityOneTest extends | |
android.test.ActivityInstrumentationTestCase2<ActivityOne> { | |
private ActivityOne thisActivity; | |
private Button bStartActivityTwo; | |
public ActivityOneTest() { | |
super("com.rocketeercoders.wotonio.ActivityOne", ActivityOne.class); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import random | |
def convert(number): | |
return { | |
0 : "Zero.wav", | |
1 : "One.wav", | |
2 : "Two.wav", | |
3 : "Three.wav", | |
4 : "Four.wav", | |
5 : "Five.wav", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import libxml2, sys | |
doc = libxml2.parseFile("source.xml") | |
ctxt = doc.xpathNewContext() | |
res = ctxt.xpathEval("//@href") | |
print len(res) | |
count = 0 | |
twitters = [] | |
feeds = [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<opml version="1.0"> | |
<head> | |
<title>Top 200</title> | |
</head> | |
<body> | |
<outline xmlUrl="http://martinfowler.com/bliki/bliki.atom"/> | |
<outline xmlUrl="http://blog.mountaingoatsoftware.com/?feed=rss2"/> | |
<outline xmlUrl="http://feeds.feedburner.com/noop"/> | |
<outline xmlUrl="http://alistair.cockburn.us/articles-blog/new/rss"/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.IO; | |
using System.Text; | |
using IronPython.Hosting; | |
using IronPython.Runtime; | |
using IronPython.Runtime.Exceptions; | |
using Microsoft.Scripting; | |
using Microsoft.Scripting.Hosting; | |
/* This script runs a python script in IronPython, with a few parameters |