- Sep 2024
-
elixir.bootlin.com elixir.bootlin.com
-
static inline unsigned int calc_slab_order(unsigned int size, unsigned int min_order, unsigned int max_order, unsigned int fract_leftover) { unsigned int order; for (order = min_order; order <= max_order; order++) { unsigned int slab_size = (unsigned int)PAGE_SIZE << order; unsigned int rem; rem = slab_size % size; if (rem <= slab_size / fract_leftover) break; } return order; }
Code to choose how many pages to allocate for a new slab to minimize wasted space from the remainder
-
- Jan 2021
-
-
css-tricks.com css-tricks.com
-
I used it to create a full-bleed utility class: .full-bleed { width: 100vw; margin-left: calc(50% - 50vw); }
-
Use-case party I asked some CSS developers when they last used calc() so we could have a nice taste here for for how others use it in their day-to-day work.
-
-
www.sitepoint.com www.sitepoint.com
-
You can read more about properly sizing the text using a combination of units along with the the calc() function in this excellent article about viewport unit-based typography.
-
- Dec 2020
-
www.ryananddebi.com www.ryananddebi.com
-
LEFT(A1,FIND(“,”, A1))
split text to columns with formula
-
- Feb 2017
-
www.independent.co.uk www.independent.co.uk
-
Eddie Hall, the strongest man in the world is the first man to lift 500kg. That itself is an amazing feat, and by using the height of the 500kg in relevance to the ground, we can calculate the work lifted. Eddie Hall's height is 6ft 3, and since deadlifts require the person to lift a bar at their torse, we can estimate the lift height to be 3 feet or .91m. Knowing that the weight is (500kg)(9.8N), we can do (500kg)(9.8N) (.91m) to get 4459J which is the work lifted.
-
-
www.efastball.com www.efastball.com
-
The formula for Kinetic Energy is 1/2 m v^2. Based on this site, the average speed of a pitch by a 16 year old is 76 MPH. Based on this data, we can find the Kinetic Energy of a 16-year old's pitch by doing KE = 1/2 (.145 KG) (76^2) = 418.76 J
-
-
www.youtube.com www.youtube.com
-
Mountain climbers and skydivers experience GPE. You explained that GPE = (mass) (gravity) (height), and I agree with you that formula is correct. You then gave an even better explanation using someone on top of Mount Everest, and you said that the person's GPE was 7,370,384 J which is calculated from the height which is 8848 x the force 9.8 x 85 which is his mass. The GPE calculation is also different from someone on a ground since they have a different height.
-