Skip to content

Instantly share code, notes, and snippets.

<?xml version="1.0" encoding="UTF-8"?>
<scxml xmlns="http://www.w3.org/2005/07/scxml" name="device" datamodel="ecmascript" version="1.0">
<state id="OK">
<state id="on">
<transition target="off" event="device.turnOff"/>
</state>
<state id="off">
<transition target="on" event="device.turnOn"/>
</state>
<transition target="error" event="device.error"/>
@mgax
mgax / download_piratepad.py
Created August 19, 2011 09:27
Download piratepad documents as html files to a git repository
#!/usr/bin/env python
import urllib2
import re
import subprocess
from time import strftime
url_list = [
]