Skip to content

Instantly share code, notes, and snippets.

View kiennguyen94's full-sized avatar

kiennguyen94

  • Interactions LLC
  • New Jersey
View GitHub Profile
@kiennguyen94
kiennguyen94 / sort_cards.py
Created November 20, 2024 13:12
Script to sort the wanikani deck by level, radical, kanji, and vocab.
import os
from typing import List
from anki.storage import Collection
# the deck: https://ankiweb.net/shared/info/2072613354
# TODO replace YOUR_USER_NAME
col = Collection('/Users/{YOUR_USER_NAME}/Library/Application Support/Anki2/User 1/collection.anki2')
deck_id = col.decks.id('WaniKani')
@kiennguyen94
kiennguyen94 / data.py
Created December 6, 2021 04:10
Saudi Arabia Ham vs Ver incident
import fastf1 as ff1
from fastf1 import plotting
from matplotlib import pyplot as plt
plotting.setup_mpl()
ff1.Cache.enable_cache('/Volumes/My Passport/Documents/f1/cache') # optional but recommended
race = ff1.get_session(2021, 'Saudi Arabia Grand Prix', 'R')
laps = race.load_laps(with_telemetry=True)