Kexin's Blog
  • HOME
  • ARCHIVES
  • TAGS
  • ABOUT
  • HOME
  • ARCHIVES
  • TAGS
  • ABOUT
  • Friend function inside template class

    Assume we have a template class named Matrix, and we want to add a friend function called swap(). Method 11234567template<...
      2023-08-09  
    • c++ 
    Read more 
  • Unittest in python - Patch

    After introduced mock in previous section, let’s talk about another powerful module – patch. Intropatch is a decorator /...
      2023-07-28  
    • python 
    • | test 
    • | pytest 
    Read more 
  • Unittest in python - Mock

    IntroMock is a very useful package for unittest in python. It can replace some classes or functions and change their behavior...
      2023-07-28  
    • python 
    • | test 
    • | pytest 
    Read more 
  • Why and why not inline

    Why inlineIn C++, we can add inline keyword in front of function defination (inline only works on defination, you don’t need ...
      2023-07-20  
    • c++ 
    Read more 
  • tmux cookbook

    TmuxWhen we use command line tools (CLI), we will open a terminal, and input some commands. This process called “session”. Bu...
      2023-07-17  
    • tools 
    • | cookbook 
    Read more 
  • #include <> Vs #include ""

    #include <header>This will let preprocessor find header files in pre-designated directories. These directories are nor...
      2023-07-16  
    • c++ 
    Read more 
  • How to setup blog?

    GithubJust create a new repo, and the repo’s name follows rule “username.github.io”. Node.js & HexoInstallJust donwload ...
      2023-07-17  
    • blog 
    • | tools 
    Read more 
Prev
© 2023 - 2025    Kexin Tang
Visitor Count   Totalview 
Powered by Hexo | Theme Keep v3.6.1