This file contains hidden or 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
| /** | |
| * This is a parser for the rapla planning tool. It fetches the HTML of the rapla page and extracts the events from it. | |
| * | |
| * Rapla: https://github.com/rapla/rapla | |
| */ | |
| import { parse } from "node-html-parser"; | |
| export type Event = { | |
| start: Date; |
This file contains hidden or 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
| import os | |
| import glob | |
| import subprocess | |
| import argparse | |
| from moviepy import VideoFileClip, concatenate_videoclips | |
| import pysubs2 | |
| def extract_subtitles(mkv_file, subtitle_index): | |
| """Extract subtitles from MKV file.""" | |
| base_name = os.path.splitext(os.path.basename(mkv_file))[0] |
This file contains hidden or 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
| // Canvas dimensions | |
| const CANVAS_WIDTH = 1080*2; | |
| const CANVAS_HEIGHT = 1080*2; | |
| // Triangle dimensions | |
| const TRIANGLE_SIZE = 50; // Size of each triangle (side length) | |
| const TRIANGLE_SPACING = 0; // Additional spacing between triangles | |
| // Colors and styling | |
| const STROKE_COLOR = '#888888'; // Color of triangle outlines |
This file contains hidden or 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
| import { parse } from "node-html-parser"; | |
| import { writeFileSync } from "fs"; | |
| const rootURL = "https://support.schulportal.hessen.de/knowledgebase.php"; | |
| const outDir = "data"; | |
| type categoryId = string; | |
| type articleId = string; | |
| let categoryIds = new Set<categoryId>(); |
This file contains hidden or 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
| const Jimp = require('jimp'); | |
| async function getSchools() { | |
| let response = await fetch("https://startcache.schulportal.hessen.de/exporteur.php?a=schoollist"); | |
| let data = await response.json(); | |
| let result = []; | |
| for (let i = 0; i < data.length; i++) { | |
| for (let j = 0; j < data[i].Schulen.length; j++) { |