Skip to content

Instantly share code, notes, and snippets.

View Forrest-Li's full-sized avatar
🏞️
Itchy feet ⛰

Forrest Li Forrest-Li

🏞️
Itchy feet ⛰
  • MSCS, NEU
  • Vancouver, CA
View GitHub Profile
@Forrest-Li
Forrest-Li / .bashrc
Last active January 26, 2023 23:32
.bashrc | with git status info | last use: Jan/26/2023
######################################################################
# Source: https://www.freecodecamp.org/news/bashrc-customization-guide/
#
#
# ██████╗ █████╗ ███████╗██╗ ██╗██████╗ ██████╗
# ██╔══██╗██╔══██╗██╔════╝██║ ██║██╔══██╗██╔════╝
# ██████╔╝███████║███████╗███████║██████╔╝██║
# ██╔══██╗██╔══██║╚════██║██╔══██║██╔══██╗██║
# ██████╔╝██║ ██║███████║██║ ██║██║ ██║╚██████╗
# ╚═════╝ ╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝╚═╝ ╚═╝ ╚═════╝
@Forrest-Li
Forrest-Li / detect_no_label.py
Created April 7, 2022 23:34
`yolov5/detect_no_label.py` replacing `yolov5/detect.py`
# YOLOv5 🚀 by Ultralytics, GPL-3.0 license
"""
Run inference on images, videos, directories, streams, etc.
Usage - sources:
$ python path/to/detect.py --weights yolov5s.pt --source 0 # webcam
img.jpg # image
vid.mp4 # video
path/ # directory
path/*.jpg # glob
@Forrest-Li
Forrest-Li / plots_fill.py
Created April 7, 2022 23:33
`yolov5/utils/plots_fill.py` replacing `yolov5/utils/plots.py`
# YOLOv5 🚀 by Ultralytics, GPL-3.0 license
"""
Plotting utils
"""
import math
import os
from copy import copy
from pathlib import Path
from urllib.error import URLError
@Forrest-Li
Forrest-Li / Eclipse_Format_profile_Forrest.xml
Created December 13, 2021 22:24
Last used: Eclipse Version: 2021-06 (4.20.0); Updated: Dec/13/2021
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<profiles version="21">
<profile kind="CodeFormatterProfile" name="Eclipse [Forrest customized]" version="21">
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_ellipsis" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_declarations" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_allocation_expression" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.parentheses_positions_in_for_statment" value="common_lines"/>
<setting id="org.eclipse.jdt.core.formatter.comment.new_lines_at_block_boundaries" value="true"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_parameters" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.comment.insert_new_line_for_parameter" value="do not insert"/>
@Forrest-Li
Forrest-Li / Image Processing HW3.md
Last active June 8, 2021 14:20
Image Processing HW3

HW3: 邊緣偵測與線段偵測-Canny Edge Detection / Hough Transform

—— Image Processing 課程作業報告







Final Project Proposal

—— Image Processing 課程期末專題提案






@Forrest-Li
Forrest-Li / Image Processing HW2.md
Last active May 3, 2021 14:14
Image Processing HW2

HW2: Color Conversion & Morphological Operations

—— Image Processing 課程作業報告







@Forrest-Li
Forrest-Li / Image Processing HW1.md
Last active June 25, 2021 14:17
Image Processing HW1

HW1: 基本影像處理功能-放大/縮小/模糊化

—— Image Processing 課程作業報告







@Forrest-Li
Forrest-Li / .zshrc
Last active October 22, 2023 11:50
.zshrc | Inherited from prev. Ubuntu, last use Mac Nov/16/2021
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH="/Users/forrestli/.oh-my-zsh"
# Load nerd fonts icons
# By Forrest@03/03/2021
source ~/Documents/nerd_fonts_download/i_all.sh

物件導向設計實習 第一次作業

提供程式架構:

Homework_calculator/calculator/

-- Main.c
-- Makefile.make
-- math_basic.c, math_basic.h //基本運算函式,包含(整數與浮點數的)加、減、乘、除運算
-- math_ext.c, math_ext.h //擴充運算函式,可自己定義更多功能,比如計算時間減法、費氏(斐波那契)数列第n項等,腦洞越大,加分越多~