Select Git revision
-
Jiří Kalvoda authored
Vytvoření funkce a jinja filtru, které z uživatele vytvoří html obsahující `*` s popiskem pro různé flagy uživatele. Aktuálně podporované flagy jsou test user (náhrada za podbarvení šrafováním) a doposud neaktivní účet. Cílem je vytvořit rozhraní na přikreslování flagů k uživatelů, které se použije všude, kde se mluví o uživatelích.
Jiří Kalvoda authoredVytvoření funkce a jinja filtru, které z uživatele vytvoří html obsahující `*` s popiskem pro různé flagy uživatele. Aktuálně podporované flagy jsou test user (náhrada za podbarvení šrafováním) a doposud neaktivní účet. Cílem je vytvořit rozhraní na přikreslování flagů k uživatelů, které se použije všude, kde se mluví o uživatelích.
find_duplicates.h 578 B
#include <unordered_map>
vector<string> find_duplicates(DataGenerator& generator) {
/*
* Find duplicates in the given data.
*
* The `generator` provides a forward iterator over strings
* for traversing the data, so it can be iterated for example
* using a `for` cycle:
*
* for (const string& item : generator) {...}
*
* The `generator` can be traversed multiple times.
*
* The goal is to return a vector of duplicated entries,
* reporting each duplicated entry only once.
*/
return vector<string>();
}