-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
114 additions
and
89 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,18 @@ | ||
#! /bin/bash | ||
### | ||
# @Author: Charmve [email protected] | ||
# @Date: 2023-11-27 10:09:28 | ||
# @LastEditors: Charmve [email protected] | ||
# @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}" | ||
|
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,78 +1,115 @@ | ||
<!-- This site is entirely raw HTML/CSS 😬. This'll change one day<sup>TM</sup>. --> | ||
|
||
<html lang="en"><head> | ||
<html lang="en"> | ||
<head> | ||
<!-- Google tag (gtag.js) --> | ||
<script async="" src="https://www.googletagmanager.com/gtag/js?id=G-Q603T56FWT"></script> | ||
<script | ||
async="" | ||
src="https://www.googletagmanager.com/gtag/js?id=G-Q603T56FWT" | ||
></script> | ||
<script> | ||
window.dataLayer = window.dataLayer || []; | ||
function gtag() { dataLayer.push(arguments); } | ||
gtag('js', new Date()); | ||
window.dataLayer = window.dataLayer || []; | ||
function gtag() { | ||
dataLayer.push(arguments); | ||
} | ||
gtag("js", new Date()); | ||
|
||
gtag('config', 'G-Q603T56FWT'); | ||
gtag("config", "G-Q603T56FWT"); | ||
</script> | ||
<meta charset="UTF-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<meta charset="UTF-8" /> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>Jesse Wei</title> | ||
<link rel="stylesheet" href="css/style.css"> | ||
<link rel="stylesheet" href="css/style.css" /> | ||
<script> | ||
MathJax = { | ||
tex: { | ||
inlineMath: [['$', '$'], ['\\(', '\\)']] | ||
}, | ||
svg: { | ||
fontCache: 'global' | ||
} | ||
}; | ||
MathJax = { | ||
tex: { | ||
inlineMath: [ | ||
["$", "$"], | ||
["\\(", "\\)"], | ||
], | ||
}, | ||
svg: { | ||
fontCache: "global", | ||
}, | ||
}; | ||
</script> | ||
<script type="text/javascript" id="MathJax-script" async="" src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml.js"> | ||
</script> | ||
<link rel="shortcut icon" type="image/x-icon" href="/img/logo.jpg"> | ||
</head> | ||
<script | ||
type="text/javascript" | ||
id="MathJax-script" | ||
async="" | ||
src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml.js" | ||
></script> | ||
<link rel="shortcut icon" type="image/x-icon" href="/img/logo.jpg" /> | ||
</head> | ||
|
||
<body> | ||
<body> | ||
<header> | ||
<nav> | ||
<ul class="nav-links"> | ||
<li><a class="no-underline" href="/">Home</a></li> | ||
<li><a class="no-underline" href="/blog">Blog</a></li> | ||
<li><a class="no-underline" href="/teaching">Teaching</a></li> | ||
</ul> | ||
</nav> | ||
<nav> | ||
<ul class="nav-links"> | ||
<li><a class="no-underline" href="/">Home</a></li> | ||
<li><a class="no-underline" href="/blog">Blog</a></li> | ||
<li><a class="no-underline" href="/teaching">Teaching</a></li> | ||
</ul> | ||
</nav> | ||
</header> | ||
|
||
<h1 class="big-name">Jesse Wei</h1> | ||
<h3 class="sub-name"> | ||
{Undergraduate, Researcher, Serial COMP TA} @ | ||
<a class="no-underline" href="https://unc.edu">UNC</a> | ||
{Undergraduate, Researcher, Serial COMP TA} @ | ||
<a class="no-underline" href="https://unc.edu">UNC</a> | ||
</h3> | ||
|
||
<div style="position: relative; padding: 30% 45%;"> | ||
<iframe style="position: absolute; width: 60%; height: 60%; left: 0; top: 0;" src="https://player.bilibili.com/player.html?aid=214932992&bvid=BV1wa411j7iR&cid=743024340&page=1" scrolling="no" border="0" frameborder="no"></iframe> | ||
<div style="position: relative; padding: 30% 45%"> | ||
<iframe | ||
style="position: absolute; width: 60%; height: 60%; left: 0; top: 0" | ||
src="https://player.bilibili.com/player.html?aid=214932992&bvid=BV1wa411j7iR&cid=743024340&page=1" | ||
scrolling="no" | ||
border="0" | ||
frameborder="no" | ||
></iframe> | ||
</div> | ||
|
||
<div> | ||
<video width="320" height="240" controls=""> | ||
<source src="movie.mp4" type="video/mp4"> | ||
<source src="movie.ogg" type="video/ogg"> | ||
<source src="movie.webm" type="video/webm"> | ||
<source src="movie.mp4" type="video/mp4" /> | ||
<source src="movie.ogg" type="video/ogg" /> | ||
<source src="movie.webm" type="video/webm" /> | ||
<object data="movie.mp4" width="320" height="240"> | ||
<embed src="movie.swf" width="320" height="240"> | ||
</object> | ||
</video> | ||
</div> | ||
<embed src="movie.swf" width="320" height="240" /> | ||
</object> | ||
</video> | ||
</div> | ||
|
||
<div class="container"> | ||
<iframe width="190" height="200" src="https://www.youtube.com/embed/QsaT23CZIpM" title="Jesse's PB (9.04s)" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen=""></iframe> | ||
<iframe | ||
width="190" | ||
height="200" | ||
src="https://www.youtube.com/embed/QsaT23CZIpM" | ||
title="Jesse's PB (9.04s)" | ||
frameborder="0" | ||
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" | ||
allowfullscreen="" | ||
></iframe> | ||
</div> | ||
|
||
<footer> | ||
<ul class="footer-flex"> | ||
<li><a class="no-underline" href="https://www.linkedin.com/in/jessewei1/">LinkedIn</a></li> | ||
<li><a class="no-underline" href="https://www.github.com/jesse-wei">GitHub</a></li> | ||
<li><a class="no-underline" href="mailto:[email protected]">Email</a></li> | ||
<li><a class="no-underline" href="phone.html">Phone</a></li> | ||
</ul> | ||
<ul class="footer-flex"> | ||
<li> | ||
<a class="no-underline" href="https://www.linkedin.com/in/jessewei1/" | ||
>LinkedIn</a | ||
> | ||
</li> | ||
<li> | ||
<a class="no-underline" href="https://www.github.com/jesse-wei" | ||
>GitHub</a | ||
> | ||
</li> | ||
<li> | ||
<a class="no-underline" href="mailto:[email protected]">Email</a> | ||
</li> | ||
<li><a class="no-underline" href="phone.html">Phone</a></li> | ||
</ul> | ||
</footer> | ||
|
||
</body></html> | ||
</body> | ||
</html> |
This file contains 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
This file contains 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