Code Monkey home page Code Monkey logo

xkcd-calendar-facts-python's Introduction

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


xkcd-calendar-facts-python's People

Contributors

notcraig avatar

Stargazers

Daniel avatar  avatar Sean Jain Ellis avatar

Watchers

James Cloos avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.