Skip to content

Instantly share code, notes, and snippets.

View anbreww's full-sized avatar

Andrew Watson anbreww

View GitHub Profile

Keybase proof

I hereby claim:

  • I am anbreww on github.
  • I am mrmansfeld (https://keybase.io/mrmansfeld) on keybase.
  • I have a public key whose fingerprint is D94A 55AA 89FE 2970 828B 93D2 5E71 AFC4 9CCE 925C

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am tunebird on github.
  • I am mrmansfeld (https://keybase.io/mrmansfeld) on keybase.
  • I have a public key whose fingerprint is D94A 55AA 89FE 2970 828B 93D2 5E71 AFC4 9CCE 925C

To claim this, I am signing this object:

@anbreww
anbreww / btc_stream_notifier.py
Created December 18, 2013 18:39
BTC Exchange rate notifier. Reads the latest exchange rate from the streaming websocket API and checks for upper and lower limits, and sends a notification via Pushover.
#!/usr/bin/env python
# -*- coding:utf-8 -*-
#
# btc_stream_notifier.py
# simple BTC exchange rate checker with notification (using websocket stream)
# Andrew Watson - 2013
#
# usage :
# python btc_notifier.py --over 600 --under 500
# -> notify when price goes over $600/BTC or under $500/BTC
@anbreww
anbreww / btc_notifier.py
Created December 18, 2013 17:24
Simple script to check MtGox exchange rate and send a pushover notification. The script exits after it's sent one notification.
#!/usr/bin/env python
#
# btc_notifier.py
# simple BTC exchange rate checker with notification
# Andrew Watson - 2013
#
# usage :
# python btc_notifier.py + 700
# -> notify when price goes over 700 USD per BTC
# python btc_notifier.py - 650