Giter VIP home page Giter VIP logo

learnrust's Introduction

Hi there ๐Ÿ‘‹, this is Xuhua

wakatime

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

Skills

  • ๐Ÿ’ป C / C++ / Python
  • ๐Ÿ–ฅ๏ธ Rust / Cython / Java
  • ๐Ÿ—ƒ๏ธ Object-Oriented Programming

LinkedIn Skill Assessment Badges

Recently Obtained Badges

Applied Data Science with Python - Level 2 Data Visualization using Python Data Analysis Using Python Python for Data Science

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.
GitHub profile status

Overview

Top Languages

XuhuaHuang's Top Languages

Summary of Coding Activities

XuhuaHuang's Stats

XuhuaHuang's Streak

โค๏ธ 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>;
}

learnrust's People

Contributors

xuhuahuang avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.