- Rollup: rollup-plugin-import-css
- Webpack: css-loader
- Vite: (included OOTB)
- Parcel: (included OOTB)
- ESBuild: (included OOTB)
- Snowpack: (included OOTB)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//META{"name":"redGuilds","description":"Changes the guilds background to red","author":"Jiiks","version":"1.0"}*// | |
.guilds-1SWlCJ .scroller-2TZvBN { | |
background:red; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@import url("https://masicorelord.github.io/Mini-Themes/OldRegularMessageDividers.css"); | |
.container-3FojY8 .markup-2BOw-j:not(.embedFull-2tM8--) {max-width:calc(100% - 70px);} | |
:root {--background-message-hover:transparent;} | |
.button-1ZiXG9, | |
.separator-42rNt0 { | |
display:none; | |
} | |
.mentioned-xhSam7 { | |
background-color:transparent !important; | |
} |
Just jotting down some ideas. Inspired by flexbox, Morphorm, and Figma's autolayout engine.
- This is currently okay
- This would require no usage of absolute directions (top/bottom/left/right).
Pixels
are a unit of length defined by a logical pixel.Percent
is a relative unit of length defined by the computed dimensions of an anchor element (usually a parent, although seeposition
for edge cases).
Just jotting down some ideas. Inspired by flexbox, Morphorm, and Figma's autolayout engine.
- This is currently okay on most properties excluding offsets, paddings and margins.
- This would require no usage of absolute directions (top/bottom/left/right).
Pixels
are a unit of length defined by a logical pixel.Percent
is a relative unit of length defined by the computed dimensions of an anchor element (usually a parent, although seeposition
for edge cases) excluding padding.
Hot/cold linking is a strategy used by PROS for splitting a program into two binary packages to reduce upload size.
- The cold image (cold.bin) contains libraries (libpros, liblvgl, libstdc++, etc...). The cold image is uploaded once, or whenever it is modified.
- The hot image (hot.bin) contains user functions and links against the cold image. The hot image is uploaded every time the program is built, and thus must be optimized for size.
Each image has its own address offset in memory:
- Cold memory begins at address
0x03800000
. This is the actual entrypoint of a user program's memory space and is the first thing that is executed by CPU0. - Hot memory begins at address
0x07800000
. - Source: https://github.com/purduesigbots/pros/blob/1e7513d4f110d2eac625b6300dbbb8c086ab6c0c/firmware/v5-hot.ld#L15
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Given a left, right, and maximum speed, calculate a new set of speed values that preserve the | |
* ratio between left and right if one of the two values is over the maximum threshold. | |
* | |
* @param left_speed The uncapped left speed. | |
* @param right_speed The uncapped right speed. | |
* @param max_speed The maximum speed that can be reached by a motor. | |
* | |
* @return A pair of speed values {left_speed, right_speed} that is correctly scaled down if one | |
* of the two values exceeds max_speed. |