Skip to content

Instantly share code, notes, and snippets.

View GhostToast's full-sized avatar

Gustave F. Gerhardt GhostToast

View GitHub Profile
@GhostToast
GhostToast / moon.js
Last active February 28, 2020 13:05
Moon Phaser
function getMoonPhase(year, month, day){
var c = e = jd = b = 0;
if (month < 3) {
year--;
month += 12;
}
++month;
var c = 365.25 * year;
var e = 30.6 * month;
var jd = c + e + day - 694039.09; //jd is total days elapsed
@GhostToast
GhostToast / profile.xml
Last active March 14, 2020 19:07
Tasker Profile for connecting Darkysky API to Pujie Black
<TaskerData sr="" dvi="1" tv="5.9.2">
<Profile sr="prof6" ve="2">
<cdate>1583089329361</cdate>
<edate>1583943323047</edate>
<flags>8</flags>
<id>6</id>
<mid0>4</mid0>
<nme>Darksky</nme>
<Time sr="con0">
<fh>-1</fh>