cards

alternative to Anki for the command-line
git clone https://github.com/jennydoe/cards.git
Log | Files | Refs | Feed | README

commit d82f4ec569340b7dcc914da29eaff3199f684ef6
parent d726db3b463d5c5b3532f736c4d5f1509c1f2a66
Author: Jenny Doe <tng@soykaf.me>
Date:   Tue,  9 Apr 2019 23:32:04 +0200

fixed: better readme for github

Diffstat:
AREADME.md | 56++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Dreadme | 52----------------------------------------------------
2 files changed, 56 insertions(+), 52 deletions(-)

diff --git a/README.md b/README.md @@ -0,0 +1,56 @@ +# flashcards + +![](https://lambdafun.neocities.org/assets/cards.gif) + +## Online resources (older->newer) + +- https://soykaf.me/2019-03-28-exg.html +- https://soykaf.me/2019-04-05-45Y.html +- https://soykaf.me/assets/cards2.mp4 + +## Build and run + + make + ./a.out -f hiragana.csv + # at some point enter !save and exit with CTRL-D + +## Tutorial + +Edit `cards.csv` and save your session by typing `!save` while studying. + +Here is a typical `cards.csv`: + + front1,back1, + front2,back2, + ... + +You can also use the `-f` flag to use another file such as hiragana.csv +for instance. + +WARNING! This tool won't care about the order in which cards were +written in the file! + +If you want `cards.c` to know which cards to show first, you'll have to +fill the last field of each line with a number. The higher it is the +earlier the card will appear. This number is altered by `cards.c` when +you type `!save`. + +If you want your cards to appear in the same order as in cards.csv, run +this: + + cat cards.csv | awk 'BEGIN{i=1000}{print $0 i--}' > cards2.csv + +## Tips + + cat hiragana.csv katakana.csv > cards.csv + ./a.out + +## Credits + +This project includes files from csv_parser + +https://github.com/semitrivial/csv_parser + +## Development notes + +Known to compile and run on Debian Stretch and FreeBSD 12 diff --git a/readme b/readme @@ -1,52 +0,0 @@ -Online resources (older->newer) - - https://soykaf.me/2019-03-28-exg.html - https://soykaf.me/2019-04-05-45Y.html - https://soykaf.me/assets/cards2.mp4 - -Build and run - - make - ./a.out -f hiragana.csv - # at some point enter !save and exit with CTRL-D - -Tutorial - -Edit cards.csv and save your session by typing !save while studying. - -Here is a typical cards.csv: - - front1,back1, - front2,back2, - ... - -You can also use the -f flag to use another file such as hiragana.csv -for instance. - -WARNING! This tool won't care about the order in which cards were -written in the file! - -If you want cards.c to know which cards to show first, you'll have to -fill the last field of each line with a number. The higher it is the -earlier the card will appear. This number is altered by cards.c when you -type !save. - -If you want your cards to appear in the same order as in cards.csv, run -this: - - cat cards.csv | awk 'BEGIN{i=1000}{print $0 i--}' > cards2.csv.csv - -Tips - - cat hiragana.csv katakana.csv > cards.csv - ./a.out - -Credits - -This project includes files from csv_parser - - https://github.com/semitrivial/csv_parser - -Development notes - -Known to compile and run on Debian Stretch and FreeBSD 12