This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Importing the libraries | |
from bs4 import BeautifulSoup | |
import requests | |
import sys | |
import re | |
import argparse | |
import os | |
import csv | |
# Function to generate cards using the given html page |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- almost all of this is from Ben Kerman's sub-pause script - https://github.com/Ben-Kerman/mpv-sub-scripts/blob/master/sub-pause.lua | |
-- I just made some minor changes so visibility of subtitles is determined by a hotkey (e like languagereactor) and implemented | |
-- a credit system so you can only access a certain number of subtitles per show (default 10 per refold roadmap example) | |
-- | |
-- This is only designed for use in stage 1. | |
-- feel free to modify and/or redistribute as long as you give credit to the original creator; © 2022 Ben Kerman | |
local cfg = { | |
default_start = false, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name animelon-subtitle-downloader | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description download animelon subtitles | |
// @author mescyn#5794 | |
// @match https://animelon.com/video/* | |
// @grant unsafeWindow | |
// @grant GM_registerMenuCommand | |
// @require https://cdn.jsdelivr.net/npm/[email protected]/dist/FileSaver.min.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import sys | |
import chess.pgn | |
positions = [] | |
class UniqPositionsVisitor(chess.pgn.BaseVisitor): | |
def visit_board(self, board): | |
if board.fen() not in positions: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# simple script to produce a csv to import into anki to incorporate spaced repetition for chessking apps | |
# this one is for ct-art 4.0 (1200-2400) organized by difficulty | |
# | |
# it's based on the webapp, which I assume fully matches the mobile apps | |
back = "\"If you made any incorrect moves, fail card. Otherwise pass. Always fully calculate full variations without moving pieces.\"" | |
tbl = [ | |
[ "10.1", 26], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# simple script to produce a csv to import into anki to incorporate spaced repetition for chessking apps | |
# this one is for chess tactics for beginners, you just create a table with categories and number of problems in each category | |
wrong = "\"If you made any incorrect moves, fail card. Otherwise pass. Always fully calculate full variations without moving pieces.\"" | |
tbl = [ | |
["MateIn1.RookCheckmates", 12], | |
["MateIn1.QueenCheckmates", 18], | |
["MateIn1.BishopCheckmates", 12], | |
["MateIn1.KnightCheckmates", 12], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Logical Chess Move by Move - Irving Chernev | |
The World's Most Instructive Amateur Game Book - Heisman | |
Chess: The Art of Logical Thinking - Neil McDonald | |
(Note: the non-anthology A First Book of Morphy by del Rosario can be read here) | |
Simple Attacking Plans - Wilson - contains a variety of master-master, master-amateur & amateur-amateur games | |
The Most Instructive Games of Chess Ever Played - Irving Chernev | |
The Art of Planning in Chess - Neil McDonald | |
Winning Chess Brilliancies - Yasser Seirawan | |
Chess Master vs. Chess Amateur - Euwe and Meiden | |
Best Lessons of a Chess Coach - Weeramantry and Eusebi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import duolingo | |
import json | |
import csv | |
import time | |
csvfile = open("duolingo_import.csv", "w") | |
duolingo_csv = csv.writer(csvfile, quoting=csv.QUOTE_MINIMAL) | |
lingo = duolingo.Duolingo('myname', ...) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
from lxml import html | |
import requests | |
from bs4 import BeautifulSoup | |
import sys | |
import itertools | |
import genanki | |
import glob | |
import shutil |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
from pysubparser import parser | |
import sys | |
if len(sys.argv) == 1: | |
print(f"{sys.argv[0]} subtitle_file\n") | |
else: | |
subtitles = parser.parse(sys.argv[1]) |
NewerOlder