GithubHelp home page GithubHelp logo

rote's Introduction

rote

Use the commands below to setup and run rote for the first time (and get back to your original shell). This does assume you have nix installed on your machine. nix is a single command install and it's non-invasive to your environment. Give it a try or read up on nix if you haven't!

nix-shell
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
python rote.py
deactivate
<Ctrl+D>

And after you've setup the first time with the above commands, you'll only need the subset below to run rote again (and get back to your original shell).

nix-shell
source venv/bin/activate
python rote.py
deactivate
<Ctrl+D>

There are a few sample flashcard decks in this repository, for now:

  • ./decks/git
  • ./decks/python-cli
  • ./decks/python-language

However, I believe it's more helpful for each individual to create and curate their own decks. I plan to curate the sample decks some more and then add the decks directory to .gitignore. Until then, my_decks is present in .gitignore, so that is available for each individual's decks.

You can specify a deck at the terminal. If left unspecified, it will default to ./decks/git.

python rote.py ./decks/python-cli

To add your own flashcard decks, create a directory with one or more .yaml files in them, where the YAML is a top-level array of objects with keys front and back, like so:

# ./decks/example/fox.yaml
-
  front: what is the only thing with which one can see rightly?
  back: the heart
-
  front: what is invisible to the eye?
  back: the essential
# ./decks/example/md5-cli.yaml
-
  front: get the md5 hash of the string "wonder" using the here-string operator
  back: md5sum <<< "wonder"

Then specify the deck directory and all flashcards found in all .yaml files will be shuffled and, one by one, presented at the terminal:

python rote.py ./decks/example/

To continue, the user must type the value of the flashcard's back verbatim.

rote's People

Contributors

raym avatar

Watchers

 avatar

rote's Issues

Test themselves on a single flashcard

Requirements

1.

given I have started the program
then I am presented with a prompt
and I can type my answer
and I have a CTA for submitting my answer

2.

given I have submitted my answer
when the answer is correct
then I am told that my answer is correct
and the program exits

3.

given I have submitted my answer
when the answer is incorrect
then I am told that my answer is incorrect
and the program exits

Tech plan:

  • initialize a Python project with a unit testing suite
  • create a spike branch
  • string together POC functionality
  • create a feature branch
  • TDD until all cases are covered
  • setup test runner in actions pipeline

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.