Jason Yuen

Results 25 comments of Jason Yuen

Fun fact: `Intl.RelativeTimeFormat` supports fractional amounts, e.g. `rtf.format(-3.14159, 'minute')` becomes `'3.142 minutes ago'`. I only used integer amounts in this pr, because there's no need for fractional amounts right now.

There's a markdown version at https://github.com/idleberg/Creative-Commons-Markdown/blob/main/3.0/by-nc-sa.markdown

Relevant links: - https://github.com/DMOJ/site-assets/tree/master/fontawesome - https://github.com/DMOJ/site-assets/pull/2

Fixed in #47, and pushed to the main site sometime last week.

This wouldn't work for https://dmoj.ca/user/Pleedoh

`clean_html` is only used in this migration from 2019: https://github.com/DMOJ/online-judge/blame/79be4af4b542aadc4fe82d23e0af209d6fe8a23f/judge/migrations/0091_compiler_message_ansi2html.py#L4 Because migrations are run once, security is not a concern. However, the removal of `clean_html` could cause problems. @Ninjaclasher do...

The paginator is created in `templates/list-pages.html`, and the links are created by using `page_prefix` and `first_page_href`. These 2 variables were added to the context here: https://github.com/DMOJ/online-judge/blob/97f2c450e88814012d19cbcfbec3ae74d14415cb/judge/views/problem.py#L426 `get_sort_paginate_context` does not consider...

This issue has reached a milestone. The site will serve dark mode if the user specifies `?dark` in the URL. For example: https://dmoj.ca/problem/aplusb?dark This new feature is intended for developers...

Comments on the editorial page may also be affected