Skip to content

Instantly share code, notes, and snippets.

@ankitest
ankitest / Back Template
Created May 24, 2017 08:18 — forked from pneff/Back Template
Anki Card Type for multiple-choice
<div class="check-container"><span id="check"></span></div>
{{#Question}}
<p>{{Question}}</p>
{{/Question}}
{{#Image}}
<p class="image">{{Image}}</p>
{{/Image}}
@ankitest
ankitest / gist:7d5b733cd7f49fcfd6eaba2d7c817fcd
Created April 19, 2016 10:06 — forked from sartak/a.md
Anki 2 annotated schema
-- cards are what you review. easy!
CREATE TABLE cards (
id integer primary key,
-- the epoch milliseconds of when the card was created
nid integer not null,
-- notes.id
did integer not null,
-- deck id (available in col table)
ord integer not null,
-- ordinal, seems like. for when a model has multiple templates, or thereabouts