Skip to content

Instantly share code, notes, and snippets.

@giovannicoppola
giovannicoppola / yaanki_chart.md
Created July 15, 2022 09:25
Yaanki card evaluation algorithm

flowchart TD id1{Learning, step1\nType/Queue=0}:::blueBox-->|"AGAIN 🔴\nBack to step 1"|id2(T/Q: 1, Due: TS+60\nIvl: 1, Factor: 0\n\nEase:1, Ivl: -60,0):::redBox id1-->|"GOOD 🟢\nTo step 2"|id3(T/Q: 1, Due: TS+600\nIvl: 1, Factor: 0\n\nEase:3, Ivl: -600,-60):::yellowBox id1-->|"EASY 🍰\nGraduate(->review card)"|id4(T/Q: 2, Due: int-crt+Ivl\nIvl: easyInt, Factor: 2500\n\nEase:4, Ivl: easyInt):::greenBox

id2-->|"AGAIN 🔴\nBack to step 1"|id5(T/Q: 1, Due: TS+60\nIvl: 1, Factor: 0\n\nEase:1, Ivl: -60,-60):::redBox id2-->|"GOOD 🟢\nStep 2"|id6(T/Q: 1, Due: TS+600\nIvl: 1, Factor: 0\n\nEase:3, Ivl: -600,-60):::yellowBox id2-->|"EASY 🍰\nGraduate"|id7(T/Q: 2, Due: int-crt+Ivl\nIvl: easyInt, Factor: 2500\n\nEase:4, Ivl: easyInt):::greenBox

id3-->|"AGAIN 🔴\nBack to step 1"|id8(T/Q: 1, Due: TS+60\nIvl: 1, Factor: 0\n\nEase:1, Ivl: -60,-600):::redBox

@giovannicoppola
giovannicoppola / workflow-install3.py
Created April 6, 2022 13:49
workflow-install3, a simplified, python3 version of the workflow-install.py script from @deanishe
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# # Copyright (c) 2013 <deanishe@deanishe.net>.
#
# MIT Licence. See http://opensource.org/licenses/MIT
#
# Created on 2013-11-01
# simplified and updated to Python3 by @giovannicoppola on Wednesday, April 6, 2022