Skip to content

Instantly share code, notes, and snippets.

@mogproject
mogproject / icpc_pypy.md
Last active October 6, 2023 22:47
How to set up PyPy 3 for problemtools/icpc on Docker

0. Assumptions

1. Set up Docker image

  • Install and start Docker Desktop
  • Download image: docker pull problemtools/icpc
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mogproject
mogproject / horizontal.css
Last active December 21, 2024 19:40
Custom horizontal layout CSS running with OBS/Discord Streaming Kit.
/*
* Custom horizontal layout CSS running with OBS/Discord Streaming Kit.
*
* Recommended browser size: w2600 x h400
* URL: https://streamkit.discord.com/overlay/voice/{SERVER_ID}/{CHANNEL_ID}?icon=true&online=true&logo=white&text_color=%23ffffff&text_size=28&text_outline_color=%23000000&text_outline_size=0&text_shadow_color=%23000000&text_shadow_size=0&bg_color=%231e2124&bg_opacity=0.95&bg_shadow_color=%23000000&bg_shadow_size=0&invite_code=&limit_speaking=false&small_avatars=false&hide_names=false&fade_chat=0&streamer_avatar_first=false
* (Replace {SERVER_ID} and {CHANNEL_ID} with your IDs.)
*/
[class*="Voice_voiceStates__"] {
display: flex;
@mogproject
mogproject / feign-2024-04-20.css
Last active December 21, 2024 19:41
Custom CSS for Feign running with OBS/Discord Streaming Kit.
/*
* Custom CSS for Feign running with OBS/Discord Streaming Kit.
*
* Recommended browser size: w2600 x h400
*
* URL: https://streamkit.discord.com/overlay/voice/{SERVER_ID}/{CHANNEL_ID}?icon=true&online=true&logo=white&text_color=%23ffffff&text_size=28&text_outline_color=%23000000&text_outline_size=0&text_shadow_color=%23000000&text_shadow_size=0&bg_color=%231e2124&bg_opacity=0.95&bg_shadow_color=%23000000&bg_shadow_size=0&invite_code=&limit_speaking=false&small_avatars=false&hide_names=true&fade_chat=0&streamer_avatar_first=false
* (Replace {SERVER_ID} and {CHANNEL_ID} with your IDs.)
*
* Modified based on:
* - https://piyonyuxu.fanbox.cc/posts/4943228
@mogproject
mogproject / CSSDM24.md
Last active July 4, 2024 22:11
CSSDM24

Poset Inequalities

Day 3

Problem 1

Recall: $\displaystyle e(P-y) = \sum_{C \in \mathcal{C}\colon y\in C} |\{f \in \mathcal{E}(P) : \Phi(f) = C\}|$.

Then,

$$$$