Comments (7)
わかりました。現状1つのjsonにデータ全部持ってるんですが、全データダウンロードするのパフォーマンス大丈夫ですかね(あとキャッシュによる不具合とか)
やばそうだったらコンテスト/問題毎にディレクトリとファイル毎にわけてjsonをおくことで対処することも可能です。
from atcoder-tools.
丸ごとひとつの json の形で大丈夫です。
ただし https://kyuridenamida.github.io/atcoder-tools/manifest.json とほぼ同様に設置されると仮定しています。
1回の通信の容量はいまそのまま解析結果のページを開くのと同じ量なので 300KB と大きくなく 200ms と十分に高速、接続数が増えたとしてもAtCoder のユーザ数程度なら GitHub pages は耐えてくれます。キャッシュも適切に設定されているので、複数ページを開いても重複しての通信はないので安心です。
また、もし最適ではなかったとしても、 userscript の内部で使うAPIなので互換性は気にせず壊すことができるので、問題が起こってから考えても遅くはないです。
from atcoder-tools.
OKです。ダウンロード出来るようにしてみます。
from atcoder-tools.
よろしくお願いします。
from atcoder-tools.
https://kyuridenamida.github.io/atcoder-tools/api/all.json
これでいいですか?型はQualityResult.tsの定義を見てください
import Problem from './Problem'
export default interface QualityResult {
problem: Problem,
contest: {
contest_id: string,
},
statement_parse: {
error: string | null
},
format_prediction: {
error: string | null
},
modulo: {
value: number | null
error: string | null
},
yes_str: {
error: string | null
value: string | null
},
no_str: {
error: string | null
value: string | null
},
codes: {
[lang: string] : string,
}
}
from atcoder-tools.
完璧です。
ではuserscriptを書きます
from atcoder-tools.
いい話
from atcoder-tools.
Related Issues (20)
- python でのsubmit時のlanguage_number取得時のerror
- submit時のsave_no_session_cacheが逆になっている
- Merge remaining pending changes to be released branched from 1.1.5
- TLE になるケースをテストするとクラッシュする
- 開発フローを明らかにして極力自動化する + Python3.5サポート廃止
- genコマンドでコード生成する際、ファイルがすでにある場合にスキップするオプションが欲しい HOT 3
- 対応言語を自動でREADMEに反映
- Universal code generatorのテンプレートを指定したい HOT 4
- atcoder-tools loginが欲しい
- test や submit の --dir に相対パスを指定すると実行ファイルの実行に失敗する
- submitコマンドが終了コード255で終了する
- input_part_prefixが使われていない
- submit コマンドにも lang オプションが欲しい HOT 3
- Go言語でatcoder-tools testを実行するとエラーで失敗する
- "soft_unicode" is not supported in latest markupsafe HOT 2
- Tampemonkey用Userscriptのリンク切れ
- gen コマンドでコンテストの指定にURLを使えるようにする
- 言語アップデートでの提出の表記が変わった HOT 2
- submitコマンド実行終了時、提出結果ページをブラウザで開く HOT 1
- atcoderのサイトではacになるコードが"atcoder-tools test" で通らないです。
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from atcoder-tools.