Giter Club home page Giter Club logo

dafyomiandmore's Introduction

Hi there 馃憢 I am David Nagarpowers!

GIF

Bio

  • 馃懐 I鈥檓 looking to collaborate on any projects!

  • 馃挰 Ask me about Python; I am obsessed 馃お

  • Want to chat or buy me a coffee?

    "Buy Me A Coffee"

  • 馃摣 How to reach me:

Languages and Tools:

Certificates:

馃搱 My Github Stats

danyeric123

dafyomiandmore's People

Contributors

danyeric123 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

harrism178996

dafyomiandmore's Issues

fixed code for few problems

There are some problems with the current code:

  1. At the end of the current cycle of the daf hayomi something goes wrong.
  2. There is an error in the maseches brachos.
  3. Starting with the next cycle of the daf hayomi (after brachos) he does not give a correct page.
    The correct code should apparently be as follows:

`

def today_daf(daf_date=None) -> Tuple:
    first_cycle = date(1923, 9, 23)
    scheduling = mw.col.conf.get("rollover", 4)
    delta = timedelta(hours=scheduling)
    if daf_date is not None:
        cur = daf_date
    else:
        if datetime.today().hour < delta.seconds // 3600:
            cur = date.today() - timedelta(days=1)
        else:
            cur = date.today()
    days_since = cur - first_cycle
    days_since = days_since.days
    total_dapim = sum(mesekhtot.values())
    dapim_in_current_cycle = days_since % total_dapim
    dapim_in_current_cycle += 63
    dapim_in_current_cycle += 12
 
    count = 0
    for mesekhta, pages in mesekhtot.items():
        count += 1
        # print(count)
        if dapim_in_current_cycle < pages:
            if mesekhta == "拽讬谞讬诐":
                dapim_in_current_cycle += 21
            if mesekhta == "转诪讬讚":
                dapim_in_current_cycle += 25
            if mesekhta == "诪讚讜转":
                dapim_in_current_cycle += 33
            return (mesekhta, _num_to_str(dapim_in_current_cycle + 2, False))
            # break
        dapim_in_current_cycle = dapim_in_current_cycle - pages
    return ("讘专讻讜转", _num_to_str(dapim_in_current_cycle + 2, False))

`

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.