Wei's Constants
Constants of colors
Blood Red: #880808
Keyboard shortcuts
1
2
3
4
5
// To open emoji keyboard:
Win + .
// To enable auto-wrap in a text editor:
Alt + z
Terminal commands:
1
2
3
4
5
6
7
8
9
To host a server, using python, which loads local files for web testing:
python -m http.server
// To host a local jekyll (E.g., to test this website):
bundle exec jekyll serve
// To do system file check:
sfc/scannow
Windows run:
1
2
// to call disk cleaner
cleanmgr
Common bash commands
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// go up one level:
cd ..
// go to home directory:
cd ~
// create a folder:
mkdir foldername
// create a file:
touch file.txt
//delete a file:
rm file.txt
//delete a folder recursively
rm -r folder
R:
Install package from source
1
2
// First, go to the directory where you store the downloaded package file, then:
R CMD INSTALL ggplot2_3.5.1.tar.gz // change ggplot2_3.5.1.tar.gz to your package filename
This post is licensed under CC BY 4.0 by the author.