Skip to content

Instantly share code, notes, and snippets.

@eshapard
eshapard / keybase.md
Created March 17, 2020 23:53
keybase proof

Keybase proof

I hereby claim:

  • I am eshapard on github.
  • I am sagebrush (https://keybase.io/sagebrush) on keybase.
  • I have a public key ASC8MWdf1NyTNBjgQuKS2vMYzqZ0H6RLArLSEbLYUuxG-wo

To claim this, I am signing this object:

@eshapard
eshapard / autoLearningSteps.py
Last active February 11, 2023 20:18
Anki 2.0 addon to dynamically create learning steps. Starting at 15 minutes and then one day, each additional step is `easeFactor * lastStep` until we pass 20 days. Sets graduating and *Easy* interval to the next logical interval in the series. See this post for rationale: https://eshapard.github.io/anki/anki-learning-steps-with-feedback.html
# Auto Learning Steps
# Anki 2.0 addon
# Author EJS
# https://eshapard.github.io/
#
# Sets the learning steps sequence of each deck options group.
from anki.hooks import addHook
from aqt import mw
#from aqt.utils import showInfo
#import time
@eshapard
eshapard / deadline.py
Last active November 30, 2023 19:49
Anki Deadline
# Anki Deadline
# Anki 2 plugin
# Author: EJS
# Version 0.1
# Description: Adjusts 'New Cards per Day' setting of options group to ensure all cards
# are seen by deadline.
# License: GNU GPL v3 <www.gnu.org/licenses/gpl.html>
from __future__ import division
import datetime, time, math
from anki.hooks import wrap, addHook
@eshapard
eshapard / filterSafety.py
Last active October 23, 2023 21:04
Anki 2.0 addon. Prevents learning (and re-learning) cards from being removed from a filtered deck. This allows you to rebuild the deck while keeping the learning cards inside of it; bypassing the problems with Anki decks where learning cards are set back to 'new' or 'review' when they exit a filtered deck.
# Filter Safety
# Anki 2.0 addon
# Author EJS
# https://eshapard.github.io/
#
# Prevents cards in learning state from being moved out of a filtered deck
# when you rebuild it.
from anki.sched import Scheduler
#from aqt.utils import showInfo