git clone https://github.com/probonopd/linuxdeployqt.git
cd linuxdeployqt
mkdir build && cd build
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | """ | |
| 将Git提交历史记录文件解析为CSV格式 | |
| Q: 如何处理非UTF-8编码的Git日志? | |
| A: 使用 iconv 工具转换编码,例如: | |
| ``` | |
| iconv -f GBK -t UTF-8 git_log.txt > git_log_utf8.txt | |
| python parse_git_log.py git_log_utf8.txt output.csv | |
| ``` | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | cmake_minimum_required(VERSION 3.20) | |
| project(HelloWorld CXX) | |
| set(CMAKE_CXX_STANDARD 17) | |
| set(CMAKE_CXX_STANDARD_REQUIRED ON) | |
| # fetch the google test framework | |
| include(FetchContent) | |
| FetchContent_Declare( | |
| googletest | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | #pragma once | |
| #include <cstdint> | |
| #include <arm_neon.h> | |
| template <typename T> | |
| struct arm_opt_neon_pid { | |
| arm_opt_neon_pid(T Kp, T Ki, T Kd) { | |
| A[0] = Kp + Ki + Kd; | |
| A[1] = -Kp - 2 * Kd; | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | #pragma once | |
| #include <cstdint> | |
| #include <algorithm> | |
| #include <arm_neon.h> | |
| namespace vector_algo { | |
| template <typename T> | |
| struct arm_neon_pid { | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | #pragma once | |
| #include <cstddef> | |
| #include <iterator> | |
| template <typename T, size_t N> | |
| struct ring_buffer { | |
| using pointer_type = T*; | |
| using reference = T&; | |
| using const_reference = const T&; | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | #include <cstddef> | |
| #include <cstdint> | |
| #include <type_traits> | |
| template <typename T, T _base, size_t _size> | |
| struct StaticBlock { | |
| static_assert(std::is_pointer<T>::value); | |
| static constexpr void* base = _base; | |
| static constexpr const size_t size = _size; | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | #/bin/sh | |
| # install zsh and oh-my-zsh | |
| sudo apt install -y curl zsh fonts-powerline | |
| sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" | |
| # install powerlevel10k theme | |
| git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k | |
| # set ZSH_THEME="powerlevel10k/powerlevel10k" in ~/.zshrc. | |
| sed -i 's/^ZSH_THEME=.*/ZSH_THEME="powerlevel10k\/powerlevel10k"/g' ~/.zshrc | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | #pragma once | |
| template <typename T, int N> | |
| struct _CircleBuffer_iterator { | |
| private: | |
| T *_base; | |
| T *_ptr; | |
| static inline size_t _modN_(size_t pos) { return pos % N; } | |
| static inline size_t _iter_pos_(T *ptr, T *base) { return (ptr - base); } | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | #!/bin/bash | |
| function use_proxy() { | |
| git config --global http.proxy $1 | |
| git config --global https.proxy $1 | |
| export http_proxy=$1 | |
| export https_proxy=$1 | |
| export ftp_proxy=$1 | |
| export rsync_proxy=$1 | |
| export all_proxy=$1 | 
NewerOlder