{"id":13507343,"url":"https://github.com/edubkendo/supermemo","last_synced_at":"2025-04-15T06:31:56.445Z","repository":{"id":23835631,"uuid":"27212918","full_name":"edubkendo/supermemo","owner":"edubkendo","description":"An Elixir implementation of the Supermemo 2 algorithm","archived":false,"fork":false,"pushed_at":"2020-02-05T02:31:30.000Z","size":14,"stargazers_count":18,"open_issues_count":1,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-01T06:34:28.138Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Elixir","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/edubkendo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-11-27T06:53:36.000Z","updated_at":"2023-12-05T02:48:34.000Z","dependencies_parsed_at":"2022-08-22T06:10:09.641Z","dependency_job_id":null,"html_url":"https://github.com/edubkendo/supermemo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edubkendo%2Fsupermemo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edubkendo%2Fsupermemo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edubkendo%2Fsupermemo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edubkendo%2Fsupermemo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/edubkendo","download_url":"https://codeload.github.com/edubkendo/supermemo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223664777,"owners_count":17182181,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-01T02:00:31.623Z","updated_at":"2024-11-08T09:47:31.167Z","avatar_url":"https://github.com/edubkendo.png","language":"Elixir","funding_links":[],"categories":["Algorithms and Data structures","Algorithms and Datastructures"],"sub_categories":[],"readme":"Supermemo\n=========\n\nA library for calculating the next time a flashcard should be shown.\n\nBased on the Supermemo 2 algorithm described [here](http://www.supermemo.com/english/ol/sm2.htm) and the Ruby implementation of it used in [dpwright/srs](https://github.com/dpwright/srs).\n\n## Install\n\nAdd Supermemo to your mix.exs:\n\n```elixir\ndef deps do\n  [ {:supermemo, \"~\u003e 1.0.0\"} ]\nend\n```\n\n## Usage\n\n```elixir\n# Initial rep\n\n    rep = Supermemo.rep(1)\n    # %Supermemo.Rep{due: %Timex.DateTime{calendar: :gregorian, day: 29, hour: 5,\n    #   minute: 45, month: 11, ms: 0, second: 18,\n    #   timezone: %Timex.TimezoneInfo{dst_abbreviation: \"UTC\", dst_end_day: :undef,\n    #    dst_end_time: {0, 0}, dst_name: \"UTC\", dst_start_day: :undef,\n    #    dst_start_time: {0, 0}, full_name: \"UTC\", gmt_offset_dst: 0,\n    #    gmt_offset_std: 0, standard_abbreviation: \"UTC\", standard_name: \"UTC\"},\n    #   year: 2014}, e_factor: 2.6, interval: 1, iteration: 1, repeat: false}\n\n# Do a rep with the card and get a new score.\n    \n    rep = Supermemo.rep(1, rep)\n    # %Supermemo.Rep{due: %Timex.DateTime{calendar: :gregorian, day: 4, hour: 5,\n    #   minute: 45, month: 12, ms: 0, second: 23,\n    #   timezone: %Timex.TimezoneInfo{dst_abbreviation: \"UTC\", dst_end_day: :undef,\n    #    dst_end_time: {0, 0}, dst_name: \"UTC\", dst_start_day: :undef,\n    #    dst_start_time: {0, 0}, full_name: \"UTC\", gmt_offset_dst: 0,\n    #    gmt_offset_std: 0, standard_abbreviation: \"UTC\", standard_name: \"UTC\"},\n    #   year: 2014}, e_factor: 2.7, interval: 6, iteration: 2, repeat: false}\n\n# Another rep\n\n    third_rep = Supermemo.rep(0.8, rep)\n# ...\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedubkendo%2Fsupermemo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fedubkendo%2Fsupermemo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedubkendo%2Fsupermemo/lists"}