npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

acm-resolver

v1.0.0

Published

acm resolver

Downloads

3

Readme

acm-resolver

本项目 fork 自 hiho-resolver,用于 ACM 系列竞赛的滚榜。 相比原项目,主要优化了动画效率,更改了界面配色,并丰富了文档。

[English Document]

Screenshot

screenshot

Tutorial

Start

pnpm install
pnpm run start

Operation

不停按方向键右即可。

如果切换了数据源,需要清空浏览器缓存再刷新。

JSON Configuration Format

{
    "contest_name": "your contest name",
    "problem_count": 13,
    "frozen_seconds": 3600,
    "solutions": {},
    "users": {}
}

solution 的格式,key 可以任意,problem 下标从 1 开始:

{
    "381503": {
        "user_id": "1",
        "problem_index": "1",
        "verdict": "AC",
        "submitted_seconds": 22
    },
    "381504": {
        "user_id": "2",
        "problem_index": "1",
        "verdict": "WA",
        "submitted_seconds": 23
    }
}

user 的格式,其中 key 即为 user 的 id,要和 solution 中对上:

{
    "1": {
        "name": "花落人亡两不知",
        "college": "HZNU",
        "is_exclude": true
    },
    "2": {
        "name": "大斌丶凸(♯`∧´)凸",
        "college": "HDU",
        "is_exclude": false
    },
    "3": {
        "name": "天才少女队",
        "college": "PKU",
        "is_exclude": true
    }
}

DOMjudge

可以使用 Dup4/domjudge-utility 将 DOMjudge 中的数据导出成 acm-resolver 所需要的数据格式。

dump 的配置参考:

base_url: "https://localhost/domjudge/"
userpwd: "username:password"

cid: 1
saved_dir: "./output/1"

exported_data:
  resolver_data: true

然后将 output/1 目录下的 resolver.json 中的内容,粘贴到下图中的输入框中,然后点击「加载数据」,记得先点一下「清空缓存」。

如果不想自己搭建 http 服务器来跑 acm-resolver,可以直接使用 https://acm-resolver.xcpcio.com/