Skip to content

Instantly share code, notes, and snippets.

View chunibyo-wly's full-sized avatar
🏠
Working from home

Longyong Wu chunibyo-wly

🏠
Working from home
View GitHub Profile
@chunibyo-wly
chunibyo-wly / share_pcd_projection.py
Created December 10, 2025 06:38
SHARE S20 slam project point cloud to undistort images
import cv2
import numpy as np
import trimesh
from tqdm import tqdm
import json
import open3d as o3d
from copy import deepcopy
from pathlib import Path
import xml.etree.ElementTree as ET
from shutil import rmtree
@chunibyo-wly
chunibyo-wly / las_read.py
Last active November 14, 2025 05:46
Massive point cloud, parallel load and downsample
import argparse
import concurrent.futures
import gc
import numpy as np
import open3d as o3d
from scipy.signal import find_peaks
from tqdm import tqdm
import laspy
@chunibyo-wly
chunibyo-wly / ABCStepUrl.txt
Created July 31, 2025 02:49
ABC Dataset archive download url
https://archive.nyu.edu/bitstream/2451/44309/3/abc_0000_step_v00.7z
https://archive.nyu.edu/bitstream/2451/44310/3/abc_0001_step_v00.7z
https://archive.nyu.edu/bitstream/2451/44318/3/abc_0002_step_v00.7z
https://archive.nyu.edu/bitstream/2451/44319/3/abc_0003_step_v00.7z
https://archive.nyu.edu/bitstream/2451/44320/3/abc_0004_step_v00.7z
https://archive.nyu.edu/bitstream/2451/44321/3/abc_0005_step_v00.7z
https://archive.nyu.edu/bitstream/2451/44322/3/abc_0006_step_v00.7z
https://archive.nyu.edu/bitstream/2451/44323/3/abc_0007_step_v00.7z
https://archive.nyu.edu/bitstream/2451/44324/3/abc_0008_step_v00.7z
https://archive.nyu.edu/bitstream/2451/44325/3/abc_0009_step_v00.7z
@chunibyo-wly
chunibyo-wly / longtable.tex
Created January 1, 2025 14:46
latex longtable
\begingroup
% \setlength{\tabcolsep}{4pt} % Reduce column spacing for this table only
\renewcommand{\arraystretch}{0.8}
\footnotesize % Reduce font size for this table only
\begin{center}
\begin{longtable}{ccccccccc}
\caption{A Styled Longtable Example} \\
\toprule
\textbf{Index} & \textbf{Reference} & \textbf{Scenarios} & \textbf{Phase} & \textbf{Application} & \textbf{Data Source} & \textbf{Method} & \textbf{Target} & \textbf{Storage} \\
\midrule
@chunibyo-wly
chunibyo-wly / .tmux_startup.sh
Created September 7, 2024 09:25
Prevent WSLg suspend when terminal closed
#!/bin/bash
FLAG_FILE="/tmp/startup_script_executed"
if [ ! -f "$FLAG_FILE" ]; then
# Your commands here
echo "Running startup commands..."
# Example: Start a new tmux session with specific windows
tmux new-session -d -s my_session
@chunibyo-wly
chunibyo-wly / blender_fastapi.py
Created June 17, 2024 13:42
blender 启动 webserver
import bpy
import threading
import uvicorn
from fastapi import FastAPI
# Define the FastAPI application
app = FastAPI()
@app.get("/")
def read_root():
@chunibyo-wly
chunibyo-wly / highlight.js
Created May 19, 2024 16:15
Google Sheet App Script 自动高亮单元格关键词
function getAllIndexes(string, texts) {
const results = [];
texts.forEach(text => {
const regex = new RegExp(text, 'gi');
let match;
while ((match = regex.exec(string)) !== null) {
const startIndex = match.index;
const endIndex = match.index + text.length - 1;
@chunibyo-wly
chunibyo-wly / image_patch_split.py
Last active November 13, 2024 01:27
手动切分图片和标注以及转换 COCO 格式到 DOTA 格式
import cv2
from pycocotools.coco import COCO
from tqdm import tqdm
import numpy as np
import os
import os.path as osp
import shapely
from copy import deepcopy
import json
import shutil
import numpy as np
import cv2
import random
import math
from shapely import LineString
width, height = None, None
def line_segments_intersection(l1, l2):
import cairo
import numpy as np
import math
def cb(x1, y1, x4, y4, xc, yc):
ax = x1 - xc
ay = y1 - yc
bx = x4 - xc
by = y4 - yc