Skip to content

Instantly share code, notes, and snippets.

@aligo
Created January 19, 2017 09:30
Show Gist options
  • Save aligo/693aa1ae52bc82a69fb518181027dbf3 to your computer and use it in GitHub Desktop.
Save aligo/693aa1ae52bc82a69fb518181027dbf3 to your computer and use it in GitHub Desktop.
mids = [19,18,20,19,20,21,22,22,22,23,22,21]
sign = ((month + ( day > mids[month-1] ? 1 : 0 )) - 3 ) % 12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment