Skip to content

Instantly share code, notes, and snippets.

View rlafferty1's full-sized avatar

Ryan Lafferty rlafferty1

View GitHub Profile

Keybase proof

I hereby claim:

  • I am rlafferty1 on github.
  • I am ryanlafferty (https://keybase.io/ryanlafferty) on keybase.
  • I have a public key whose fingerprint is 09E9 2A66 09CD 522A 79C9 2715 A60E 6A0D 1F40 A36B

To claim this, I am signing this object:

from datetime import datetime
from math import *
#result in hours
def get_LST(datestr,long):
dt1 = datetime.strptime(datestr,"%Y %m %d %H %M %S")
dd=dt1-datetime(2000,1,1,0,0,0)
utc = dt1.hour+dt1.minute/60.0+dt1.second/(3600.0)
return ((100.46+0.985647*dd.total_seconds()/(86400.0)+long)/15.0 +utc)%24
@rlafferty1
rlafferty1 / gist:fe1ff914d67e9fd44e58
Created February 11, 2016 01:29
onenameverification
Verifying that +ryanlafferty is my blockchain ID. https://onename.com/ryanlafferty