From: 24 June 2024 - To: 24 July 2024
Total Time: 134 hrs 3 mins
C++ 97 hrs 42 mins >>>>>>>>>>>>>>>>>>------- 72.89 %
Python 34 hrs 23 mins >>>>>>------------------- 25.66 %
CSV 52 mins ------------------------- 00.65 %
CMake 24 mins ------------------------- 00.31 %
Other 21 mins ------------------------- 00.26 %
Skills and badges
- ๐ป C / C++ / Python
- ๐ฅ๏ธ Rust / Cython / Java
- ๐๏ธ Object-Oriented Programming
- โ๏ธ C++ Programming
- โ๏ธ Python Programming
- โ๏ธ Object-Oriented Programming
- โ๏ธ Object-Oriented Data Structures in C++
More about me
- ๐ญ Iโm currently working on learning OpenCV4 with Python3 and Qt5.
- ๐ฑ Iโm currently learning Rust.
- ๐ค Most used line of code
git commit -m "Initial Commit"
. - ๐ค Iโm looking for help with advanced Python and Machine Learning.
- ๐ซ How to reach me: [email protected]
- โก Fun fact: code blooded animal
std::code_blooded
.
โค๏ธ Modern C++
/*****************************************************************//**
* \file trimstr.hpp
* \brief Demonstration of handy constant expressions that trim
* `std::string` at compile time with `std::ranges`
*
* $ g++ trimstr.hpp -o trimstr.o -std=c++23 -Wall -Wextra -Wpedantic
*
* \author Xuhua Huang
* \date March 2022
*********************************************************************/
#if defined __has_include
#if __has_include(<ranges>) && __has_include(<string>)
#include <ranges>
#include <string>
#else
#error "Require std::ranges and std::string library!"
#endif
#endif
inline constexpr auto trim_front = std::views::drop_while(::isspace);
inline constexpr auto trim_back = std::views::reverse
| std::views::drop_while(::isspace)
| std::views::reverse;
inline constexpr auto trim_spaces = trim_front | trim_back;
std::string trim_str(const std::string& str) {
// std::rangesnext::to in C++23 proposal
// that converts ranges to a container
return str | trim_spaces | std::rangesnext::to<std::string>;
}