Skip to content

Instantly share code, notes, and snippets.

View parhamfh's full-sized avatar
🤠
nothing is happening, everything is relative

parhamfh

🤠
nothing is happening, everything is relative
View GitHub Profile
@parhamfh
parhamfh / jdutil.py
Last active August 29, 2015 14:09 — forked from jiffyclub/jdutil.py
"""
Functions for converting dates to/from JD and MJD. Assumes dates are historical
dates, including the transition from the Julian calendar to the Gregorian
calendar in 1582. No support for proleptic Gregorian/Julian calendars.
:Author: Matt Davis
:Website: http://github.com/jiffyclub
"""
#!/usr/bin/ruby
#
# This script fixes /usr/local only.
#
# 6th January 2010:
# Modified the script to just fix, rather than install. - rpavlik
#
# 30th March 2010:
# Added a check to make sure user is in the staff group. This was a problem
# for me, and I think it was due to me migrating my account over several