Skip to content

Instantly share code, notes, and snippets.

@romilly
romilly / ser.py
Last active May 22, 2019 15:03
Real and print lines from a serial input
import serial
with serial.Serial('/dev/ttyACM0', 9600, timeout=10) as ser:
while True:
print(ser.readline())
import feedparser
feed = feedparser.parse('http://newsrss.bbc.co.uk/rss/newsonline_uk_edition/front_page/rss.xml')
print feed['feed']['title']
print len(feed)
@romilly
romilly / keybase.md
Last active August 29, 2015 13:57
Keybase ID Proof

Keybase proof

I hereby claim:

  • I am romilly on github.
  • I am romilly (https://keybase.io/romilly) on keybase.
  • I have a public key whose fingerprint is 878A 89AD 2AC2 E315 1E6C 5398 72CA 4FA2 E7CB 6E36

To claim this, I am signing this object: