Skip to content

Instantly share code, notes, and snippets.

View cubercsl's full-sized avatar
🤔
Fishing

cubercsl cubercsl

🤔
Fishing
View GitHub Profile
@cubercsl
cubercsl / scoreboard.py
Created May 27, 2024 14:18
DOMJudge Scoreboard
import sys
import json
import csv
import dj_utils
def problems_info(problems):
def problem_info(p):
if p['solved']:
@cubercsl
cubercsl / config.json
Last active May 23, 2024 13:00
Useful domjudge scripts
{
"allow_team_submission_download": true,
"auth_methods": [
"ipaddress"
],
"clar_answers": [
"No comment.",
"Read the problem statement carefully."
],
"clar_categories": {
@cubercsl
cubercsl / connect-internet
Last active February 5, 2023 14:29
ECNU Connect Internet CLI
#!/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]]"