Skip to content

Instantly share code, notes, and snippets.

@virtalas
virtalas / toanki.py
Last active July 10, 2024 07:26
Import a Yomiwa (iOS) word list into Anki.
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Explanation:
# Export a word list from Yomiwa iOS app to a file, convert to a tab-separated file, and import to Anki.
# Installation:
# 1. pip install jamdict
# 2. Follow jamdict's github page instructions to install the dictionary database.
# Usage:
# In Yomiwa, add words to a list.
@virtalas
virtalas / toanki_old.py
Last active September 21, 2020 16:06
Export word list from Yomiwa iOS app, convert to tab-separated file, and import to Anki. Add example sentences by adding the word first, then by pressing analyze text and starring it.
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Export word list from Yomiwa iOS app, convert to tab-separated file, and import to Anki.
# Add example sentences by adding the word first, then by pressing analyze text and starring it.
skip = 0
word_count = 0
to_write = ''
reading_meanings = False # Expect meanings in the next line
/*
* Normalize your MyAnimeList scores
*
* This is a tool to organize your anime into a list according to how good they are
* and then assign them scores using the full scale from 1 to 10, following these (or other) percentages:
* 10: 3.5%, 9: 8%, 8: 10%, 7: 14%, 6: 14.5%, 5: 14.5%, 4: 14%, 3: 10%, 2: 8%, 1: 3.5%
*
* HOW TO USE:
* Go to a myanimelist.net anime/manga list, and choose the 'Completed' view.
* Open a JavaScript console on your browser and paste this code into it and press enter.
@virtalas
virtalas / mal-rewatch-counter.js
Last active April 1, 2026 18:29
Find out easily what anime you have rewatched by executing this script on your myanimelist.net 'Completed' list page.
/*
* MyAnimeList Rewatch Counter
* (+ reread manga)
*
* This is a tool to easily and quickly make a list of what anime you have rewatched and how many times.
* Also works for reread manga.
*
* HOW TO USE:
* Go to a myanimelist.net anime/manga list, and choose the 'Completed' view.
* Open a JavaScript console on your browser and paste this code into it and press enter.
@virtalas
virtalas / browser-notepad.txt
Created November 30, 2015 18:57
Notepad page for your browser. Paste the code into the addressbar and mark as a bookmark.
data:text/html;
charset=utf-8,
<style>
html,body{
margin: 0;
padding: 0;
}
</style>