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
| // ==UserScript== | |
| // @name PTA Rankings - 显示真实评测结果 | |
| // @version 0.1.0 | |
| // @description PTA 外榜的「提交」面板会把所有非 AC 结果统一显示为 WA。本脚本读取 React 组件 props 中的真实状态,并把它替换为 TL / RE / ML / OL / CE 等正确缩写。 | |
| // @author cubercsl | |
| // @match https://pintia.cn/rankings/* | |
| // @run-at document-idle | |
| // @grant none | |
| // @license MIT | |
| // ==/UserScript== |
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
| [ | |
| { | |
| "id": 120, | |
| "name": { | |
| "zh": "山东科技大学", | |
| "en": "Shandong University of Science and Technology" | |
| }, | |
| "country": "CN" | |
| }, | |
| { |
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
| #!/bin/bash -e | |
| VERSION=8.2.3 | |
| SRC_DIR=/domjudge-src | |
| if [ $EUID -ne 0 ]; then | |
| echo "This script must be run as root" | |
| exit 1 | |
| fi |
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 sys | |
| import json | |
| import csv | |
| import dj_utils | |
| def problems_info(problems): | |
| def problem_info(p): | |
| if p['solved']: |
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
| { | |
| "adminer_enabled": false, | |
| "allow_team_submission_download": 1, | |
| "auth_methods": [ | |
| "ipaddress" | |
| ], | |
| "check_new_version": "none", | |
| "clar_answers": [ | |
| "No comment.", | |
| "Read the problem statement carefully." |
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
| #!/bin/bash | |
| # Connect ECNU Internet via command line | |
| # Author: cubercsl <2014cais01 at gmail dot com> | |
| # Licensed under Do What The F*ck You Want To Public License (WTFPL) | |
| set -eo pipefail | |
| usage() { | |
| echo "connect-internet [-f file | username [password]]" |