Giter Club home page Giter Club logo

exercism's Introduction

exercism's People

Contributors

alxndr avatar

Stargazers

Rich Steinmetz avatar Loc Phan avatar  avatar Joakim Nylén avatar Emil Kirilov avatar  avatar Bill Johnson avatar George Opritescu avatar Tan Yeong Sheng avatar Amir Baruch avatar Arpit Shah avatar

Watchers

 avatar Mohnish G J avatar James Cloos avatar Akshay Babar avatar KimJ avatar  avatar  avatar

exercism's Issues

`Meetup.find_weekday_on_or_following/2` assumes next day is in same year and month

defp find_weekday_on_or_following(weekday_int, date_tuple = {y, m, d}) do
  if weekday_int == :calendar.day_of_the_week(date_tuple) do
    date_tuple
  else
    find_weekday_on_or_following weekday_int, {y, m, d+1}
  end
end
{y, m, d+1}

☝️ assumes same year and month

Not sure if you are using Timex, but roughly Timex.shift(Date.from_erl(date_tuple), days: 1) might be a better approach.

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.