Hacker-friendly flashcard compiler.
Flashcards take too long to make. A lot of the process can be automated. Let's create a language around flashcard creation thats easy to read, open, flexible and supports lots of different kinds of media.
I'm learning spanish right now. I'm trying to be systematic about it:
I wanted a flexible way to slurp in a lot of the web's media with very little prior information. I decided that urls to resources was the easiest way to do this. However, many times you cannot eke out the type of media just from the url (e.g. google's speech api).
So this compiler visits each url supplied and uses the response's
content-type to determine how to represent each url. No, this compiler is not meant to be fast.
The goal of the language is to make it very easy to write automated scripts to generate great flash cards.
npm install flashcard
var flashcard = ;;
Represents the end of one card, the start of the next
"Flips" the card. The back side of the card.
URL to a media resource. Flashcard currently supports: images, audio, youtube, and regular links to html pages.
Text is anything that isn't a url. Flashcard this text to markdown and supports code blocks.
Empty lines don't matter except when you're in a text block (ie. in between paragraphs)
This was my first attempt at building a DSL. TJ's https://github.com/visionmedia/css-whitespace was really helpful.