Bobby Rong

Results 49 comments of Bobby Rong

这边也遇到了这个问题,我的猜测是他的 markdown 渲染和 katex 渲染是拆开的。 https://github.com/shi-yang/jnoj/blob/5115f928d875951e3e7f44f021bae75b3ffc0ae5/components/Formatter.php#L29-L40 遇到下面的 markdown 文本: ``` test $n_{i,j},n_{i,j}$ ``` 在渲染 markdown 时是不管两个下划线是不是在 `$` 里面的,直接当作 markdown 中的斜体处理: ``` test $n{i,j},n{i,j}$ ``` 转为 html 后再开始公式渲染,至于怎么渲染法应该还是看这个文件,表示看的有点晕。 但我猜测这个 `` 的出现阻止了...

滋瓷一个!这边在将 JNOJ 的 `yii2-bootstrap` 迁移到 `yii2-bootstrap4`,现在改的差不多了,就是后台可能简陋了一些(逃 - https://github.com/SCNU-SoCoding/scnuoj - https://oj.socoding.cn/ --- 更新一下,现在加了一堆花里胡哨的功能: - 把线下赛类型给撤销了,留下一种类型。然后单独添加了是否开启打印、是否开启答疑的开关,滚榜、打星设置(完全的自定义,也就是普通用户也可打星)、比赛用户批量创建这些功能都移植到线上赛了。 - 加了一个比赛邀请码的功能,输对邀请码才能注册。 - 支持添加外链到外部比赛,就是说可以在 vjudge 开比赛然后挂链接到比赛列表。 - 加了一个永久题目集的功能,类似 Codeforces 补题的那个榜单。另外榜单现在自带分页了。 - 重新调过比赛赛制,OI 赛制只看最后一次提交的得分,不看最高分;IOI 赛制只看每题最高分,不看 AC 题数。...

> 你这个弄得挺漂亮的,我想问问一下你们服务器配置? > > 也想搭建你们这个 清华同方 Q170-4S,i5-6500,8G 内存,128G 固态,Ubuntu 20.04,PHP 7.4,MariaDB 10.3 ~~**还没有 production-ready 的**(捂脸),估计至少得到下学期~~ 上线啦,虽然还在改,不过也快啦。

我这里可以插入行内公式的,要是调字号的话改这里就行: https://github.com/shi-yang/jnoj/blob/5115f928d875951e3e7f44f021bae75b3ffc0ae5/components/Formatter.php#L123-L130 ```php public function katex_src_inline( $matches ) { $katex = $matches[1]; $katex = $this->katex_entity_decode_editormd( $katex ); return '' . $katex . ''; } ```

其实改这里就好了... https://github.com/shi-yang/jnoj/blob/8fe96b68ce955fee97db02554f5cb3a74ae8574a/judge/src/judge.c#L1464-L1469 或者像我们这样改视图也行(雾) ![](https://user-images.githubusercontent.com/20080233/137592949-c6348e3b-30a2-428c-baa7-9646bae27e41.png)

对,强烈建议加一个...

可以从上海大学镜像站同步:https://mirrors.shu.edu.cn/kaoslinux/

- [x] [This e-d-s patch](https://github.com/NixOS/nixpkgs/blob/gnome/pkgs/desktops/gnome/core/evolution-data-server/hardcode-gsettings.patch) probably no longer applies ­– Modified the update script to re-generate the patch from coccinelle semantic patch. —@jtojnar ```diff diff --git a/pkgs/desktops/gnome/core/evolution-data-server/hardcode-gsettings.patch b/pkgs/desktops/gnome/core/evolution-data-server/hardcode-gsettings.patch index 4e345c3cb3c..1fafeda3a64...

- [x] nixosTests.cinnamon [timeout](https://logs.nix.ci/?attempt_id=66c05c4e-54ac-4d9b-adbb-a42ed768eec5&key=nixos%2Fnixpkgs.182618) when "waiting for the Cinnamon shell" and cinnamon VM does not start on https://github.com/NixOS/nixpkgs/pull/182618/commits/21472e90f6ad814f45eb448584a0cbe981d14a6a /cc @mkg20001