Skip to content

Instantly share code, notes, and snippets.

@thirdratecyberpunk
thirdratecyberpunk / gchq_2022.py
Last active December 14, 2022 18:02
Quick and dirty code for the automatable puzzles in the gchq Christmas Card puzzle 2022
import nltk
from nltk.corpus import words
class Gear:
def __init__(self, word, direction):
# letters on the teeth, assuming the first character in the string is the initial gear setting
# and you read the letters in a clockwise sequence
self.word = word
# whether the gear rotates anti-clockwise (1) or clockwise (-1)
@thirdratecyberpunk
thirdratecyberpunk / mal_to_letterboxd.py
Created September 27, 2021 23:20
MyAnimeList export file to Letterboxd format
"""
Takes in a given MAL export file and generates a list of movies
in .csv format supported by LetterBoxd
"""
import xmltodict
import json
import pandas as pd
allowed_types = ["Movie", "OVA"]