Skip to content

Commit f1d5031

Browse files
author
Administrator
committed
rspress 项目分支初始化
0 parents  commit f1d5031

File tree

49 files changed

+12245
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+12245
-0
lines changed

.gitignore

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Local
2+
.DS_Store
3+
*.local
4+
*.log*
5+
6+
# Dist
7+
node_modules
8+
dist/
9+
doc_build/
10+
11+
# IDE
12+
.vscode/*
13+
!.vscode/extensions.json
14+
.idea

.prettierignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Lock files
2+
package-lock.json
3+
pnpm-lock.yaml
4+
yarn.lock

.prettierrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"singleQuote": true
3+
}

README.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Rspress website
2+
3+
## Setup
4+
5+
Install the dependencies:
6+
7+
```bash
8+
npm install
9+
```
10+
11+
## Get started
12+
13+
Start the dev server:
14+
15+
```bash
16+
npm run dev
17+
```
18+
19+
Build the website for production:
20+
21+
```bash
22+
npm run build
23+
```
24+
25+
Preview the production build locally:
26+
27+
```bash
28+
npm run preview
29+
```

biome.json

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"$schema": "https://biomejs.dev/schemas/1.8.0/schema.json",
3+
"organizeImports": {
4+
"enabled": true
5+
},
6+
"vcs": {
7+
"enabled": true,
8+
"clientKind": "git",
9+
"useIgnoreFile": true
10+
},
11+
"formatter": {
12+
"indentStyle": "space"
13+
},
14+
"javascript": {
15+
"formatter": {
16+
"quoteStyle": "single"
17+
}
18+
},
19+
"css": {
20+
"parser": {
21+
"cssModules": true
22+
}
23+
},
24+
"linter": {
25+
"enabled": true,
26+
"rules": {
27+
"recommended": true
28+
}
29+
}
30+
}

docs/_meta.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
[
2+
{
3+
"text": "博客",
4+
"link": "/blog/2018-07-14-Android学习之路",
5+
"activeMatch": "^/blog/"
6+
},
7+
{
8+
"text": "指南",
9+
"link": "/guide/",
10+
"activeMatch": "/guide/"
11+
},
12+
{
13+
"text": "API",
14+
"link": "https://rspress.dev/api/index.html"
15+
}
16+
]
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
---
2+
layout: post
3+
title: 安卓学习之路
4+
date: 2018-07-14 20:20
5+
categories: jekyll update
6+
7+
---
8+
>1、视频是怎么创建的
9+
10+
>2、视频怎么播放的
11+
12+
>3、数据库升级策略
13+
14+
>4、APP路线图
15+
16+
```
17+
APP
18+
|——HTPP请求
19+
|——JSON
20+
|——GSON
21+
|——SQLite数据库存储
22+
|——升级策略
23+
|——图片加载
24+
|——缓存机制
25+
|——编码压缩
26+
|——解码图片,参数的含义等
27+
28+
|——内存管理
29+
|——RxJava响应式编程
30+
|——注解自动生成代码
31+
|——Android的Gradle配置说明
32+
|——Gradle 3.0.0新依赖配置
33+
|——Canvas画图API
34+
|——Matrix用于图像变换
35+
|——自定义Android View
36+
|——多媒体技术
37+
|——视频推流技术
38+
|——视频录制
39+
|——视频编辑处理技术
40+
|——Material的新功能设计、动画设计
41+
```
42+
<!-- more -->
43+
44+
>Java路线图
45+
46+
```
47+
JAVA
48+
|——数据加密
49+
|——反射机制
50+
|——注解
51+
|——多线程并发:同步与协程操作
52+
|——生产者与消费者模型案例
53+
|——线程干扰,内存一致性错误
54+
|——加锁机制,活锁和死锁
55+
|——设计模式
56+
|——
57+
```
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
layout: post
3+
title: "Welcome to Jekyll!"
4+
date: 2018-07-14 20:16:56 +08:00
5+
categories: jekyll update
6+
7+
---
8+
You’ll find this post in your `_posts` directory. Go ahead and edit it and re-build the site to see your changes. You can rebuild the site in many different ways, but the most common way is to run `jekyll serve`, which launches a web server and auto-regenerates your site when a file is updated.
9+
10+
To add new posts, simply add a file in the `_posts` directory that follows the convention `YYYY-MM-DD-name-of-post.ext` and includes the necessary front matter. Take a look at the source for this post to get an idea about how it works.
11+
12+
Jekyll also offers powerful support for code snippets:
13+
<!-- more -->
14+
{% highlight ruby %}
15+
def print_hi(name)
16+
puts "Hi, #{name}"
17+
end
18+
print_hi('Tom')
19+
#=> prints 'Hi, Tom' to STDOUT.
20+
{% endhighlight %}
21+
22+
Check out the [Jekyll docs][jekyll-docs] for more info on how to get the most out of Jekyll. File all bugs/feature requests at [Jekyll’s GitHub repo][jekyll-gh]. If you have questions, you can ask them on [Jekyll Talk][jekyll-talk].
23+
24+
[jekyll-docs]: https://jekyllrb.com/docs/home
25+
[jekyll-gh]: https://github.com/jekyll/jekyll
26+
[jekyll-talk]: https://talk.jekyllrb.com/
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
---
2+
layout: post
3+
title: "Android APPs 反编译工具"
4+
date: 2018-07-20 23:57:34 +08:00
5+
categories: Android 反编译工具 工具
6+
tags: Android
7+
8+
---
9+
10+
11+
## 反编译工具有哪些?
12+
13+
* [dex2jar]( https://github.com/pxb1988/dex2jar)
14+
* [jd-gui](https://github.com/java-decompiler/jd-gui)
15+
* [jadx](https://github.com/skylot/jadx)
16+
* [enjarify](https://github.com/google/enjarify)
17+
* [Apktool](https://github.com/iBotPeaches/Apktool)
18+
19+
上面的5种反编译相关的工具都是开源的。
20+
21+
> 最开始反编译工具是`dex2jar`可以将`dex`转化成`jar`包,然后可以将`jar`通过`jd-gui`来转换。
22+
23+
发现这个过程需要两步才能完成,后来直接使用`jadx``apk`
24+
<!-- more -->
25+
使用`jd-gui/jadx`查看代码的时候,跳转以及查找都比较的慢。就使用`enjarify`(号称可以反编译出来的类最多)将`apk`反编译成`dex`,然后使用`jadx``dex`反编译成`java`代码,使用`Android Studio`查看代码。
26+
使用`apktoo`l可以反编译出资源文件。
27+
所以现在我的习惯,对于直接给的jar(其它部门的SDK)使用`jd-gui`。对于不需要去具体看代码的apk使用jadx直接查看。对于可能需要研究的代码,使用`enjarify` + `jadx` + `Andorid Studio`。需要查看资源文件就使用`apktool`
28+
29+
> 一个小的tips,使用`adb`命令快速的找到当前在那个界面。
30+
31+
```shell
32+
adb shell dumpsys window windows | grep -E ‘mCurrentFocus'
33+
```
34+
35+
> 更多的`adb`命令还可以查考`awesome-adb`
36+
37+
最后反编译不是我们学习的全部,但是了解一点还是对开发有帮助的。
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
---
2+
layout: post
3+
title: "Android的进程和线程."
4+
date: 2018-07-21 02:05:05 +08:00
5+
categories: Android
6+
tags: Android 线程 进程
7+
8+
---
9+
10+
11+
## Android中包括5种进程
12+
13+
> 1、前台进程:
14+
15+
用户交互的`Activity`,绑定到service的用户正在交互`Activity`
16+
`startForground()``service`
17+
托管正执行一个生命周期回调的 `Service(onCreate()、onStart()``onDestroy()`
18+
`broadcast`的正在执行`onReceive()`
19+
20+
> 2、可见进程
21+
22+
托管不在前台、但仍对用户可见的 `Activity`(已调用其 `onPause()` 方法)。例如,如果前台 Activity 启动了一个对话框,允许在其后显示上一 `Activity`,则有可能会发生这种情况。
23+
托管绑定到可见(或前台)`Activity``Service`
24+
25+
clik topic to see more...
26+
<!-- more -->
27+
> 3、服务进程
28+
29+
正在运行已使用 `startService()` 方法启动的服务且不属于上述两个更高类别进程的进程。
30+
31+
> 4、后台进程
32+
33+
包含目前对用户不可见的 `Activity` 的进程(已调用 `Activity``onStop()` 方法)
34+
这些进程对用户体验没有直接影响,系统可能随时终止它们,以回收内存供前台进程、可见进程或服务进程使用。 通常会有很多后台进程在运行,因此它们会保存在 `LRU` (最近最少使用)列表中,以确保包含用户最近查看的 `Activity` 的进程最后一个被终止。如果某个 `Activity` 正确实现了生命周期方法,并保存了其当前状态,则终止其进程不会对用户体验产生明显影响,因为当用户导航回该 `Activity` 时,`Activity` 会恢复其所有可见状态。 有关保存和恢复状态的信息,请参阅 `Activity`文档。
35+
36+
> 5、空进程
37+
38+
不含任何活动应用组件的进程。
39+
保留这种进程的的唯一目的是用作缓存,以缩短下次在其中运行组件所需的启动时间。 为使总体系统资源在进程缓存和底层内核缓存之间保持平衡,系统往往会终止这些进程。
40+
41+
## Android线程类
42+
> `HanlderThread`这个类可以看看源码,看到

0 commit comments

Comments
 (0)