GithubHelp home page GithubHelp logo

fla.sh's Introduction

fla.sh

Paper-light flashcards in under 40 lines of bash.

Flashcards are simply files with their filename as the prompt and their contents as the answer. When cards are learned, they are hidden and a . is prepended to the filename.

Files can be "learned" or "forgotten" (hidden and unhidden) in bulk outside of interactive mode with the learn and forget commands.

How come you have the user check their answers? Wouldn't it just be a simple equality check?

Ah, glad you asked! I've tried many flashcard systems, and automatic answer checking just adds too many hassles. Some answers are cumbersome to type out, silly typos will get reported as wrong answers, and some questions can't simply be answered in a short string of text.

Usage:
  fla.sh
  fla.sh write
  fla.sh learn  <file...>
  fla.sh forget <file...>

This script depends on GNU shuf, which comes bundled on any sane Linux distro, but not on OSX. You can install it through Homebrew with brew install coreutils, but then shuf will be installed as gshuf, so you'll need to either alias it (alias shuf='gshuf') or edit the script locally to change the shuf call to gshuf.

fla.sh's People

Contributors

joliv avatar shinnova avatar

Watchers

Valentin 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.