Skip to content

Instantly share code, notes, and snippets.

@aymkx
aymkx / class_schedule_foe_2021_2.json
Created April 7, 2021 14:39
工学部2021年度授業日程 (for Hashtable)
{
"S1S2:Mon:AM": [
"4/5",
"4/19",
"4/26",
"5/10",
"5/17",
"5/24",
"5/31",
"6/7",
from __future__ import annotations
import datetime as dt
import json
from os.path import exists, join
import sys
from typing import Any, Dict, List, Optional, Tuple, Union
from urllib.parse import urlunsplit
from dateutil import tz
@aymkx
aymkx / naoj_riseset_querypattern.json
Last active June 11, 2021 08:07
ちょっと整理した
[
{
"body": {
"group": "天体を選んでください",
"type": "options",
"options": {
"0": "太陽",
"10": "月",
"1": "水星",
"2": "金星",
@aymkx
aymkx / filter.ts
Last active July 10, 2021 12:59
TweetDeckのActivityカラムにフィルターをかけるUserScript
"use strict";
class Article {
readonly dom: HTMLElement;
readonly userId: string = "";
readonly userName: string = "";
readonly screenName: string = "";
readonly tweetId?: string;
readonly tweetUrl?: string;
@aymkx
aymkx / retrieve_archive.py
Last active July 1, 2021 02:02
app.netのアーカイブを取得するスクリプト。asyncioのこと何もわかってないのでかなり雑。まともな書き方を教えてほしい
#!/usr/bin/env python3
import asyncio
import io
import json
import os
from pathlib import Path
from typing import Optional
import aiohttp