diff --git "a/Chapter06-\345\215\240\346\215\256\347\275\221\347\273\234\351\203\250\347\275\262\345\260\217\350\257\225\357\274\232\346\250\241\345\236\213\351\207\217\345\214\226\345\212\240\351\200\237\344\270\216\351\203\250\347\275\262/CUDA-BEVFusion/.vscode/c_cpp_properties.json" b/.vscode/c_cpp_properties.json similarity index 100% rename from "Chapter06-\345\215\240\346\215\256\347\275\221\347\273\234\351\203\250\347\275\262\345\260\217\350\257\225\357\274\232\346\250\241\345\236\213\351\207\217\345\214\226\345\212\240\351\200\237\344\270\216\351\203\250\347\275\262/CUDA-BEVFusion/.vscode/c_cpp_properties.json" rename to .vscode/c_cpp_properties.json diff --git "a/Chapter06-\345\215\240\346\215\256\347\275\221\347\273\234\351\203\250\347\275\262\345\260\217\350\257\225\357\274\232\346\250\241\345\236\213\351\207\217\345\214\226\345\212\240\351\200\237\344\270\216\351\203\250\347\275\262/CUDA-BEVFusion/.vscode/launch.json" b/.vscode/launch.json similarity index 100% rename from "Chapter06-\345\215\240\346\215\256\347\275\221\347\273\234\351\203\250\347\275\262\345\260\217\350\257\225\357\274\232\346\250\241\345\236\213\351\207\217\345\214\226\345\212\240\351\200\237\344\270\216\351\203\250\347\275\262/CUDA-BEVFusion/.vscode/launch.json" rename to .vscode/launch.json diff --git "a/Chapter06-\345\215\240\346\215\256\347\275\221\347\273\234\351\203\250\347\275\262\345\260\217\350\257\225\357\274\232\346\250\241\345\236\213\351\207\217\345\214\226\345\212\240\351\200\237\344\270\216\351\203\250\347\275\262/CUDA-BEVFusion/.vscode/settings.json" b/.vscode/settings.json similarity index 100% rename from "Chapter06-\345\215\240\346\215\256\347\275\221\347\273\234\351\203\250\347\275\262\345\260\217\350\257\225\357\274\232\346\250\241\345\236\213\351\207\217\345\214\226\345\212\240\351\200\237\344\270\216\351\203\250\347\275\262/CUDA-BEVFusion/.vscode/settings.json" rename to .vscode/settings.json diff --git "a/Chapter06-\345\215\240\346\215\256\347\275\221\347\273\234\351\203\250\347\275\262\345\260\217\350\257\225\357\274\232\346\250\241\345\236\213\351\207\217\345\214\226\345\212\240\351\200\237\344\270\216\351\203\250\347\275\262/CUDA-BEVFusion/.vscode/tasks.json" b/.vscode/tasks.json similarity index 100% rename from "Chapter06-\345\215\240\346\215\256\347\275\221\347\273\234\351\203\250\347\275\262\345\260\217\350\257\225\357\274\232\346\250\241\345\236\213\351\207\217\345\214\226\345\212\240\351\200\237\344\270\216\351\203\250\347\275\262/CUDA-BEVFusion/.vscode/tasks.json" rename to .vscode/tasks.json diff --git a/docker/dev/installers/install_bazel.sh b/docker/dev/installers/install_bazel.sh index 31cc5d1..bc2e15f 100755 --- a/docker/dev/installers/install_bazel.sh +++ b/docker/dev/installers/install_bazel.sh @@ -34,7 +34,7 @@ else cp -f ${PKG_NAME} /usr/bin/bazel chmod a+x /usr/bin/bazel - # NOTE(jiaming): + # NOTE: # `bazel_completion.bash` was copied from `/etc/bash_completion.d/bazel` # on x86_64 with bazel deb-installed. # cp -f "${RCFILES_DIR}/bazel_completion.bash" /etc/bash_completion.d/bazel diff --git a/scripts/format.sh b/scripts/format.sh index 1bb81b6..508c781 100755 --- a/scripts/format.sh +++ b/scripts/format.sh @@ -258,7 +258,7 @@ function main() { return 1 fi - # Note(jiaming): + # Note: # 1) Exclude deleted files, Ref: # https://stackoverflow.com/questions/6894322/how-to-make-git-diff-and-git-log-ignore-new-and-deleted-files # 2) git-clang-format Ref: @@ -266,8 +266,9 @@ function main() { local what_to_diff what_to_diff="${CI_MERGE_REQUEST_DIFF_BASE_SHA:-HEAD~1}" + declare -a diff_files readarray -t diff_files < <(git diff --ignore-submodules --diff-filter=d --name-only "${what_to_diff}") - + for one_change in "${diff_files[@]}"; do run_format "${TOP_DIR}/${one_change}" done diff --git a/scripts/format_extra_check.sh b/scripts/format_extra_check.sh index f86d0c2..7614f23 100755 --- a/scripts/format_extra_check.sh +++ b/scripts/format_extra_check.sh @@ -1,4 +1,18 @@ #! /bin/bash +### + # @Author: Charmve yidazhang1@gmail.com + # @Date: 2023-11-27 10:09:28 + # @LastEditors: Charmve yidazhang1@gmail.com + # @LastEditTime: 2024-01-21 22:34:08 + # @FilePath: /OccNet-Course/scripts/format_extra_check.sh + # @Version: 1.0.1 + # @Blogs: charmve.blog.csdn.net + # @GitHub: https://github.com/Charmve + # @Description: + # + # Copyright (c) 2023 by Charmve, All Rights Reserved. + # Licensed under the MIT License. +### set -euo pipefail TOP_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd -P)" @@ -35,7 +49,7 @@ function run_gtest_dependency_check() { } function proto_specific_dirs_check() { - declare -A proto_dirs + declare -a proto_dirs for fn in "$@"; do if [[ "${fn}" == *".proto" ]]; then local dir @@ -51,7 +65,7 @@ function proto_specific_dirs_check() { function run_proto_lint() { local msg - # NOTE(Jiaming): + # NOTE: # 1. run "buf lint" from top_dir # 2. buf lint would probably fail, here we check unused imports only pushd "${TOP_DIR}" > /dev/null @@ -77,7 +91,9 @@ function main() { local what_to_diff what_to_diff="${CI_MERGE_REQUEST_DIFF_BASE_SHA:-HEAD~1}" + declare -a changes readarray -t changes < <(git diff --ignore-submodules --diff-filter=d --name-only "${what_to_diff}") + for one_change in "${changes[@]}"; do if [[ "${one_change}" == *".proto" ]]; then run_proto_lint "${one_change}" diff --git a/scripts/gen_proto_build.sh b/scripts/gen_proto_build.sh index e9da2f3..b780e8e 100755 --- a/scripts/gen_proto_build.sh +++ b/scripts/gen_proto_build.sh @@ -59,7 +59,7 @@ function main() { ;; esac done - # Note(jiaming): + # Note: # 1) Exclude deleted files, Ref: # https://stackoverflow.com/questions/6894322/how-to-make-git-diff-and-git-log-ignore-new-and-deleted-files # 2) git-clang-format Ref: diff --git a/scripts/gofmt.sh b/scripts/gofmt.sh index b9343fe..c76722e 100755 --- a/scripts/gofmt.sh +++ b/scripts/gofmt.sh @@ -26,7 +26,7 @@ function check_gofmt_cmd() { GOFMT_PATH="$(command -v gofmt)" fi else - # NOTE(Jiaming): This depends on two facts: + # NOTE: This depends on two facts: # 1) Our workspace is named com_maiwei and its workspace dir /maiwei is writable # 2) The symlink created (pointing to the execution_root dir) is bazel-maiwei # bazel info execution_root diff --git a/scripts/maiwei_base.sh b/scripts/maiwei_base.sh index fc6d04b..1e7f9ba 100755 --- a/scripts/maiwei_base.sh +++ b/scripts/maiwei_base.sh @@ -9,16 +9,6 @@ export WHITE='\033[34m' export YELLOW='\033[33m' export NO_COLOR='\033[0m' -# Note(jiaming): Readonly. -# Not using the `readonly` keyword here as this file may be sourced multiple times -AVAILABLE_OFFICES=( - bayarea - beijing - shenzhen - suzhou - guangzhou -) - function info() { (echo >&2 -e "[${WHITE}${BOLD}INFO${NO_COLOR}] $*") } @@ -251,25 +241,6 @@ function country_of_office() { echo "${country}" } -############################################# -# Check if the "canonical" office is valid -# Globals: -# AVAILABLE_OFFICES -# Arguments: -# A canonical office name -# Returns: -# 0 if office name is valid, non-zero otherwise -############################################# -function validate_office() { - local office="$1" - for cand in "${AVAILABLE_OFFICES[@]}"; do - if [[ "${cand}" == "${office}" ]]; then - return 0 - fi - done - return 1 -} - function determine_arm64_model() { local arch arch="$(uname -m)" diff --git a/src/video.html b/src/video.html index 18c8d82..6eb53f5 100644 --- a/src/video.html +++ b/src/video.html @@ -1,78 +1,115 @@ - + + - + - - - + + + Jesse Wei - + - - - + + + - +
- +

Jesse Wei

- {Undergraduate, Researcher, Serial COMP TA} @ - UNC + {Undergraduate, Researcher, Serial COMP TA} @ + UNC

-
- +
+
-
- + + + +
+
- +
- - + + diff --git a/tools/check_gtest_deps.sh b/tools/check_gtest_deps.sh index c22d52d..6ef718c 100755 --- a/tools/check_gtest_deps.sh +++ b/tools/check_gtest_deps.sh @@ -15,7 +15,7 @@ function _is_target_testonly() { function _is_gtest_dependent_target() { local deps deps="$(buildozer 'print deps' "$1" 2> /dev/null)" - # NOTE(Jiaming): + # NOTE: # Here we can check ONLY direct dependency on googletest. # Since if target_b depends on target_a which in turn depends on gtest # Bazel will emit the following error: diff --git a/tools/normalize_includes.py b/tools/normalize_includes.py index fdf7706..d3adce3 100755 --- a/tools/normalize_includes.py +++ b/tools/normalize_includes.py @@ -121,7 +121,7 @@ def normalize_header_includes(fentry: Path, dry=False, strip=False): fentry_new.rename(fentry) -# TODO(Jiaming): maybe a multi-threaded version +# TODO: maybe a multi-threaded version def main(files=None, dirs=None, dry=False, strip=False): if files: for ent in files: