Skip to content

notcraig/xkcd-calendar-facts-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

xkcd-calendar-facts

A python implementation of xkcd # 1930
Dear gods of geekdom, I know this is fugly and could be made much more compact/less lines, but it is my first "totally from scratch" python script where my goal was all about learning lists, appending said lists, the random module and other fun things.

calendar-facts-datatree.py is my stab at learning data tree structure (Decision Tree).
All it does at the moment is print out the trees. Making the random calendar facts -- I'm still working on that.

Did you know that
╠══ Daylight
║   ╠══ Saving
║   ╚══ Savings
╠══ Easter
╠══ Equinox
║   ╠══ Fall
║   ╚══ Spring
╠══ Leap
║   ╠══ Day
║   ╚══ Year
╠══ Moon
║   ╠══ Blood
║   ╠══ Harvest
║   ╚══ Super
╠══ Olympics
║   ╠══ Summer
║   ╚══ Winter
╠══ Shark Week
╠══ Solstice
║   ╠══ Summer
║   ╚══ Winter
╠══ Sunrise
║   ╠══ Earliest
║   ╚══ Latest
╠══ Sunset
║   ╠══ Earliest
║   ╚══ Latest
╚══ Toyota Truck Month

Manner
╠══ drifts out of sync with the
║   ╠══ Calendar
║   ║   ╠══ Gregorian
║   ║   ╠══ Lunar
║   ║   ╠══ Mayan
║   ║   ╚══ iPhone
║   ╠══ Moon
║   ╠══ Sun
║   ╠══ Zodiac
║   ╚══ atomic clock in Colorado
╠══ happens
║   ╚══ every year
║       ╠══ earlier
║       ╠══ later
║       ╚══ the wrong time
╚══ might
    ╠══ happen twice
    ╚══ not happen

because of
╠══ a decree by the pope in the 1500s
╠══ an arbitrary decision by
║   ╠══ Benjamin Franklin
║   ╠══ FDR
║   ╚══ Isaac Newton
╠══ magnetic field reversal
╠══ the excentricity of 
║   ╠══ Line
║   ║   ╠══ the International Date
║   ║   ╚══ the Mason-Dixon
║   ╠══ the Earth's Axis
║   ╠══ the Moon
║   ╠══ the Sun
║   ╠══ the equator
║   ╚══ the prime meridian
╠══ the libation of 
║   ╠══ Line
║   ║   ╠══ the International Date
║   ║   ╚══ the Mason-Dixon
║   ╠══ the Earth's Axis
║   ╠══ the Moon
║   ╠══ the Sun
║   ╠══ the equator
║   ╚══ the prime meridian
╠══ the libration of 
║   ╠══ Line
║   ║   ╠══ the International Date
║   ║   ╚══ the Mason-Dixon
║   ╠══ the Earth's Axis
║   ╠══ the Moon
║   ╠══ the Sun
║   ╠══ the equator
║   ╚══ the prime meridian
╠══ the nutation of 
║   ╠══ Line
║   ║   ╠══ the International Date
║   ║   ╚══ the Mason-Dixon
║   ╠══ the Earth's Axis
║   ╠══ the Moon
║   ╠══ the Sun
║   ╠══ the equator
║   ╚══ the prime meridian
╠══ the obliquity of 
║   ╠══ Line
║   ║   ╠══ the International Date
║   ║   ╚══ the Mason-Dixon
║   ╠══ the Earth's Axis
║   ╠══ the Moon
║   ╠══ the Sun
║   ╠══ the equator
║   ╚══ the prime meridian
╠══ the precession of 
║   ╠══ Line
║   ║   ╠══ the International Date
║   ║   ╚══ the Mason-Dixon
║   ╠══ the Earth's Axis
║   ╠══ the Moon
║   ╠══ the Sun
║   ╠══ the equator
║   ╚══ the prime meridian
╚══ time zone legislation in
    ╠══ Arizona
    ╠══ Indiana
    ╚══ Russia

Apparently
╠══ it causes a predictable increase in car accidents.
╠══ it was even more extreme during the
║   ╠══ 1990s
║   ╠══ Bronze Age.
║   ╠══ Cretaceous.
║   ╚══ Ice Age.
╠══ it's getting worse and no one knows why.
╠══ scientists are really worried.
╠══ that's why we have leap seconds.
╚══ there's a proposal to fix it, but it
    ╠══ actually makes things worse.
    ╠══ is stalled in congress.
    ╠══ might be unconstitutional.
    ╚══ will never happen.

While it may seem like trivia, it
╠══ causes huge headaches for software developers
╠══ has to be corrected for by GPS satellites
╠══ is taken advantage of by high-speed traders
╚══ triggered the 2003 Northeast Blackout


About

A python implementation of xkcd # 1930

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages