Skip to content

Instantly share code, notes, and snippets.

notifications.map(({ id, verb, data }) =>
verb === "category_weak" ? (
<NotificationsStatItem
key={id}
id={id}
title={composeCategoryWeak(data)}
recommendation={"Focus on your weak..."}
level={"error"}
/>
) : verb === "common_mistake" ? (
def generate_question_numbers(distributions, total_number):
generate_numbers = lambda S, N: map(
lambda s: round( ( N * s ) / sum(S) ),
sorted(S)
)
question_numbers = []
added_number = 0