Skip to content

Instantly share code, notes, and snippets.

View cherishyuan's full-sized avatar
🎨
Focusing

orange cherishyuan

🎨
Focusing
View GitHub Profile
@cherishyuan
cherishyuan / rotation.py
Created October 16, 2025 02:30 — forked from machinaut/rotation.py
rotation.py
# rotation.py - rotation methods for GPR
# Many methods borrow heavily or entirely from transforms3d
# eventually some of these may be upstreamed, but credit to transforms3d
# authors for implementing the many of the formulations we use here.
import numpy as np
'''
Rotations
=========
@cherishyuan
cherishyuan / mujoco_qt.py
Created June 10, 2025 08:58 — forked from JeanElsner/mujoco_qt.py
MuJoCo scene rendered in QT (PySide6) with mouse navigation
#!/usr/bin/env python3
from collections import deque
import time
import mujoco
import numpy as np
from PySide6.QtWidgets import (QApplication, QWidget, QMainWindow,
QVBoxLayout, QCheckBox, QGroupBox, QHBoxLayout)
from PySide6.QtCore import QTimer, Qt
from PySide6.QtOpenGLWidgets import QOpenGLWidget
from PySide6.QtOpenGL import QOpenGLWindow

Effective Engineer - Notes

What's an Effective Engineer?

  • They are the people who get things done. Effective Engineers produce results.

Adopt the Right Mindsets

@cherishyuan
cherishyuan / git-branch.md
Last active June 19, 2024 09:39 — forked from yisibl/git-branch.md
在Mac、Linux 终端显示 Git 当前所在分支

在Mac、Linux 终端显示 Git 当前所在分支

  1. 进入你的home目录
cd ~
  1. 编辑.bashrc文件
@cherishyuan
cherishyuan / FileArray.cpp
Created May 30, 2024 08:44 — forked from jnickg/FileArray.cpp
A simple C++ class to demonstrate how to read and write to/from a physical file.
#include <iostream>
#include <iomanip>
#include "filearray.h"
using namespace std;
// flags for opening a file that already exists
static const ios::open_mode readWriteMode = ios::in | ios::out | ios::binary;
// flags for creating a file that does not yet exist
#include <stdio.h>
#include <stdlib.h>
#include "ros/ros.h"
#include "std_msgs/MultiArrayLayout.h"
#include "std_msgs/MultiArrayDimension.h"
#include "std_msgs/Int32MultiArray.h"
@cherishyuan
cherishyuan / .alias
Created April 2, 2024 11:25 — forked from hoanghuynh/.alias
zsh
# alias
alias l='ls -ClA'
alias 'grep=grep --color=auto'
alias rsync='rsync -rvzpP --chmod=Du=rwx,Dgo=rx,Fu=rw,Fgo=r'
alias rsyncr='rsync -rvzpP --chmod=Du=rwx,Dgo=rx,Fu=rw,Fgo=r -e "ssh -p 31415"'
alias sshrsub='ssh -R 52698:localhost:52698'
alias rm='rm -i'
alias mv='mv -i'
alias cp='cp -i'
alias cls='printf "\033c"'
@cherishyuan
cherishyuan / config.yml
Created April 2, 2024 11:21 — forked from hanzomaster/config.yml
Lazygit config
gui:
expandFocusedSidePanel: true
nerdFontsVersion: '3'
sidePanelWidth: 0.2
splitDiff: always
theme:
selectedRangeBgColor:
- green
- bold
git:
username="kd"
apps=("python3" "python3-pip" "git" "curl" "wget" "lsb-release" "stow" "trash-cli" "silversearcher-ag" "fd-find" "ripgrep" "unzip" "fzf" "duf" "ncdu" "tmux" "jq" "zsh" "python3-venv")
apps_to_configure=("git" "tmux" "zsh" "coc")
architecture=$(uname -m)
install_apt_apps() {
for app in "${apps[@]}"; do
check_and_install $app
done
}