Skip to content

Instantly share code, notes, and snippets.

Tom Whipple tomwhipple

Block or report user

Report or block tomwhipple

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@tomwhipple
tomwhipple / paypal_verify.md
Last active Aug 29, 2015
Verify a PayPal immediate payment in sandbox
View paypal_verify.md

MSDKv2 Payment Verification

Generated 2014-07-28 09:03:10.408600

PayPal Payment (v2)

Make a single PayPal payment (checkout) with MSDKv2

Client Credentials

@tomwhipple
tomwhipple / blinky.py
Created Dec 2, 2012
RaspberryPi GPIO demo
View blinky.py
#!python
#
# "Hello World!" for RaspberryPi GPIO. Assumes you've correctly connected an LED to pin 5.
#
import RPi.GPIO as gpio
import time
LED_PIN = 5
@tomwhipple
tomwhipple / dms2dec.py
Created Sep 2, 2012
convert DMS coordinates to decimal in Python
View dms2dec.py
#!/env/python
# coding=utf8
"""
Converting Degrees, Minutes, Seconds formatted coordinate strings to decimal.
Formula:
DEC = (DEG + (MIN * 1/60) + (SEC * 1/60 * 1/60))
Assumes S/W are negative.
You can’t perform that action at this time.