- https://mockend.com/cia1099/temp_demo/posts
- https://mockend.com/cia1099/temp_demo/posts/1
- https://mockend.com/cia1099/temp_demo/posts?limit=5
- https://mockend.com/cia1099/temp_demo/posts?createdAt_order=desc
- https://mockend.com/cia1099/temp_demo/posts?gotItems_gt=3
- Copy local file to emulator
# when turn on emulator
adb push <PC path> <emulator path>
adb push ~/project/test.txt /storage/emulated/0/Download/
# entry emulator system
adb shell
ref. https://stackoverflow.com/questions/5151744/upload-picture-to-emulator-gallery
- 删除device里的APP
先查已安装的APP包名,如果不知道包名,可以先将查表先记录下来,再手动删除APP,然后再记录查表变化:
adb shell pm list packages
adb uninstall <package_name>
#不知道包名先记录
adb shell pm list packages > p0.txt
#手动删除APP后再记录一次
adb shell pm list packages > p1.txt
#比较差异,比较出删除的包名
opendiff p0.txt p1.txt
Here is the string to turn Hello red:
\x1B[31mHello\x1B[0m
\x1B [31m Hello \x1B [0m
Meaning:
- \x1B: ANSI escape sequence starting marker
- [31m: Escape sequence for red
- [0m: Escape sequence for reset (stop making the text red)
Here are the other colors:
Black: \x1B[30m
Red: \x1B[31m
Green: \x1B[32m
Yellow: \x1B[33m
Blue: \x1B[34m
Magenta: \x1B[35m
Cyan: \x1B[36m
White: \x1B[37m
Reset: \x1B[0m
Background Bright Black: \x1B[40;1m
Background Bright Red: \x1B[41;1m
Background Bright Green: \x1B[42;1m
Background Bright Yellow: \x1B[43;1m
Background Bright Blue: \x1B[44;1m
Background Bright Magenta: \x1B[45;1m
Background Bright Cyan: \x1B[46;1m
Background Bright White: \x1B[47;1m