Skip to content

Commit b57a84b

Browse files
committed
reboot
0 parents  commit b57a84b

30 files changed

+2428
-0
lines changed

.github/dependabot.yml

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: npm
4+
directory: "/"
5+
schedule:
6+
interval: daily
7+
open-pull-requests-limit: 20

.github/workflows/static.yml

+51
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# Simple workflow for deploying static content to GitHub Pages
2+
name: Deploy static content to Pages
3+
4+
on:
5+
# Runs on pushes targeting the default branch
6+
push:
7+
branches: ["master"]
8+
9+
# Allows you to run this workflow manually from the Actions tab
10+
workflow_dispatch:
11+
12+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
13+
permissions:
14+
contents: read
15+
pages: write
16+
id-token: write
17+
18+
# Allow one concurrent deployment
19+
concurrency:
20+
group: "pages"
21+
cancel-in-progress: true
22+
23+
jobs:
24+
deploy:
25+
environment:
26+
name: github-pages
27+
url: ${{ steps.deployment.outputs.page_url }}
28+
runs-on: ubuntu-latest
29+
steps:
30+
- name: Checkout
31+
uses: actions/checkout@v3
32+
- name: Setup Node.js environment
33+
uses: actions/[email protected]
34+
with:
35+
cache: 'npm'
36+
- name: Install Hexo
37+
run: npm i -g hexo-cli
38+
- name: NPM install
39+
run: npm install
40+
- name: Setup Pages
41+
uses: actions/configure-pages@v3
42+
- name: Hexo build
43+
run: hexo generate
44+
- name: Upload artifact
45+
uses: actions/upload-pages-artifact@v1
46+
with:
47+
# Upload entire repository
48+
path: 'public'
49+
- name: Deploy to GitHub Pages
50+
id: deployment
51+
uses: actions/deploy-pages@v1

.gitignore

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
.DS_Store
2+
Thumbs.db
3+
db.json
4+
*.log
5+
node_modules/
6+
public/
7+
.deploy*/
8+
_multiconfig.yml

_config.landscape.yml

Whitespace-only changes.

_config.next.yml

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Remove unnecessary files after hexo generate.
2+
minify: true
3+
4+
#scheme: Muse
5+
#scheme: Mist
6+
#scheme: Pisces
7+
scheme: Gemini
8+
9+
open_graph:
10+
enable: true
11+
# Add pairs each line to customize
12+
options:
13+
type: blog
14+
menu:
15+
home: / || fa fa-home
16+
#about: /about/ || fa fa-user
17+
friends: https://iseki.space/#friends || fa fa-link
18+
#tags: /tags/ || fa fa-tags
19+
#categories: /categories/ || fa fa-th
20+
archives: /archives/ || fa fa-archive
21+
#schedule: /schedule/ || fa fa-calendar
22+
#sitemap: /sitemap.xml || fa fa-sitemap
23+
#commonweal: /404/ || fa fa-heartbeat

_config.yml

+110
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,110 @@
1+
# Hexo Configuration
2+
## Docs: https://hexo.io/docs/configuration.html
3+
## Source: https://github.com/hexojs/hexo/
4+
5+
# Site
6+
title: iseki 的笔记本
7+
subtitle: '没什么,只是个备忘录'
8+
#description: ''
9+
#keywords:
10+
author: iseki zero
11+
language: zh-CN
12+
timezone: 'Asia/Shanghai'
13+
14+
# URL
15+
## Set your site url here. For example, if you use GitHub Page, set url as 'https://username.github.io/project'
16+
url: http://example.com
17+
permalink: ':year/:title/'
18+
permalink_defaults:
19+
pretty_urls:
20+
trailing_index: true # Set to false to remove trailing 'index.html' from permalinks
21+
trailing_html: true # Set to false to remove trailing '.html' from permalinks
22+
23+
# Directory
24+
source_dir: source
25+
public_dir: public
26+
tag_dir: tags
27+
archive_dir: archives
28+
category_dir: categories
29+
code_dir: downloads/code
30+
i18n_dir: :lang
31+
skip_render:
32+
33+
# Writing
34+
new_post_name: :title.md # File name of new posts
35+
default_layout: post
36+
titlecase: false # Transform title into titlecase
37+
external_link:
38+
enable: true # Open external links in new tab
39+
field: site # Apply to the whole site
40+
exclude: ''
41+
filename_case: 0
42+
render_drafts: false
43+
post_asset_folder: true
44+
relative_link: false
45+
marked:
46+
prependRoot: true
47+
postAsset: true
48+
future: true
49+
highlight:
50+
enable: true
51+
line_number: true
52+
auto_detect: false
53+
tab_replace: ''
54+
wrap: true
55+
hljs: false
56+
prismjs:
57+
enable: false
58+
preprocess: true
59+
line_number: true
60+
tab_replace: ''
61+
62+
# Home page setting
63+
# path: Root path for your blogs index page. (default = '')
64+
# per_page: Posts displayed per page. (0 = disable pagination)
65+
# order_by: Posts order. (Order by date descending by default)
66+
index_generator:
67+
path: ''
68+
per_page: 10
69+
order_by: -date
70+
71+
# Category & Tag
72+
default_category: uncategorized
73+
category_map:
74+
tag_map:
75+
76+
# Metadata elements
77+
## https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta
78+
meta_generator: true
79+
80+
# Date / Time format
81+
## Hexo uses Moment.js to parse and display date
82+
## You can customize the date format as defined in
83+
## http://momentjs.com/docs/#/displaying/format/
84+
date_format: YYYY-MM-DD
85+
time_format: HH:mm:ss
86+
## updated_option supports 'mtime', 'date', 'empty'
87+
updated_option: 'mtime'
88+
89+
# Pagination
90+
## Set per_page to 0 to disable pagination
91+
per_page: 10
92+
pagination_dir: page
93+
94+
# Include / Exclude file(s)
95+
## include:/exclude: options only apply to the 'source/' folder
96+
include:
97+
exclude:
98+
ignore:
99+
100+
# Extensions
101+
## Plugins: https://hexo.io/plugins/
102+
## Themes: https://hexo.io/themes/
103+
# theme: butterfly
104+
# theme: landscape
105+
theme: next
106+
107+
# Deployment
108+
## Docs: https://hexo.io/docs/one-command-deployment
109+
deploy:
110+
type: ''

adb.json

+1
Large diffs are not rendered by default.

package.json

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"name": "hexo-site",
3+
"version": "0.0.0",
4+
"private": true,
5+
"scripts": {
6+
"build": "hexo generate",
7+
"clean": "hexo clean",
8+
"deploy": "hexo deploy",
9+
"server": "hexo server"
10+
},
11+
"hexo": {
12+
"version": "6.3.0"
13+
},
14+
"dependencies": {
15+
"hexo": "^6.3.0",
16+
"hexo-generator-archive": "^2.0.0",
17+
"hexo-generator-category": "^2.0.0",
18+
"hexo-generator-index": "^3.0.0",
19+
"hexo-generator-tag": "^2.0.0",
20+
"hexo-renderer-ejs": "^2.0.0",
21+
"hexo-renderer-marked": "^6.0.0",
22+
"hexo-renderer-stylus": "^2.1.0",
23+
"hexo-server": "^3.0.0",
24+
"hexo-theme-landscape": "^0.0.3",
25+
"hexo-theme-next": "^8.14.2"
26+
}
27+
}

scaffolds/draft.md

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
title: {{ title }}
3+
tags:
4+
---

scaffolds/page.md

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
title: {{ title }}
3+
date: {{ date }}
4+
---

scaffolds/post.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
title: {{ title }}
3+
date: {{ date }}
4+
tags:
5+
---

source/_data/languages.yml

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# language
2+
zh-CN:
3+
# items
4+
#post:
5+
#copyright:
6+
# the translation you prefer
7+
#author: 本文博主
8+
menu:
9+
friends: 网上邻居

source/_drafts/awsl.md

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
title: iseki根本不会写blog呢
3+
date: 2020-04-21 23:33:10
4+
updated: 2020-04-21 23:33:10
5+
tags:
6+
---
7+
iseki 哪里会写博客呢…连什么是博客都说不清楚…只能时不时发发牢骚了…人逐渐的婆婆妈妈…愈发变得无聊…
8+
9+
10+
再看看前面的路…不知该干什么,也不知该走向何方呢。

source/_drafts/charset-clion-msvc.md

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
---
2+
date: 2020/5/31 21:00:00
3+
updated: 2020/5/31 21:00:00
4+
title: 解决 CLion + MSVC 下的字符编码问题
5+
6+
---
7+
8+
# 解决 CLion + MSVC 下的字符编码问题
9+
10+
第一次这么用,上来字符编码就炸了,不出意外 log 中会出现如下内容
11+
12+
```
13+
warning C4819: 该文件包含不能在当前代码页(936)中表示的字符。请将该文件保存为 Unicode 格式以防止数据丢失
14+
```
15+
16+
然后就是诡异的编译失败语法错误,比如换行符、分号等等
17+
18+
原因是 CLion 默认使用 UTF-8 编码,MSVC 继承了 MS 家族的一贯传统,除非明确指定否则要么 UTF-8 with BOM 要么当前代码页。
19+
20+
解决办法也简单,加上命令行开关就行了: `/utf-8` 或者 `source-charset:utf-8 /execution-charset:utf-8` [参见MSVC文档>>](https://docs.microsoft.com/en-us/cpp/build/reference/utf-8-set-source-and-executable-character-sets-to-utf-8)
21+
22+
默认创建的项目是 CMake 的,在 `CMakeList.txt` 中加入如下内容即可
23+
24+
```cmake
25+
add_compile_options("$<$<C_COMPILER_ID:MSVC>:/utf-8>")
26+
add_compile_options("$<$<CXX_COMPILER_ID:MSVC>:/utf-8>")
27+
```
28+
29+
括号中表达式语法具体参见 [cmake-generator-expressions(7)](https://cmake.org/cmake/help/latest/manual/cmake-generator-expressions.7.html#manual:cmake-generator-expressions(7))

source/_drafts/dalao.md

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
date: 2019-10-18 9:54
3+
updated: 2019-10-18 9:54
4+
title: 大佬们实在是太聚聚了,萌新咋活啊😐
5+
tags: [dalao]
6+
---
7+
感觉自己完了呢…

source/_drafts/gradle-execute-jar.md

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
title: Gradle 里执行 Jar 的几种办法
3+
date: 2020-04-11 20:44:00
4+
updated: 2020-04-11 20:44:00
5+
tags: [gradle]
6+
---
7+
> Gradle 这个东西真是让人头大······ 这里权当留个笔记备忘了,改日要好好学习下 Gradle
8+
9+
之前只用过 `application` 插件,结果用了 Kotlin MPP 后那个插件似乎失效了,虽然应该有办法通过手动配置继续使用那个插件,但是考虑到自己完全不熟悉 Gradle 还是不多折腾了···
10+
11+
以下内容来自 StackOverflow......
12+
13+
```kotlin
14+
tasks.create("execute") {
15+
dependsOn(tasks.getByName("jvmJar"))
16+
doLast {
17+
javaexec {
18+
this.main = "-jar"
19+
val file = File(buildDir.absolutePath + "/libs/project-jvm-0.0.1.jar")
20+
println("Execute Jar: " + file.absolutePath)
21+
this.args(file.absolutePath)
22+
}
23+
}
24+
}
25+
```
26+
要注意的是要写好 `manifest``Main-Class` 还要依赖的问题,最粗暴的办法无非就是打包成 Fat-Jar (x
27+

source/_drafts/hello-world.md

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
---
2+
title: Hello World
3+
---
4+
Welcome to [Hexo](https://hexo.io/)! This is your very first post. Check [documentation](https://hexo.io/docs/) for more info. If you get any problems when using Hexo, you can find the answer in [troubleshooting](https://hexo.io/docs/troubleshooting.html) or you can ask me on [GitHub](https://github.com/hexojs/hexo/issues).
5+
6+
## Quick Start
7+
8+
### Create a new post
9+
10+
``` bash
11+
$ hexo new "My New Post"
12+
```
13+
14+
More info: [Writing](https://hexo.io/docs/writing.html)
15+
16+
### Run server
17+
18+
``` bash
19+
$ hexo server
20+
```
21+
22+
More info: [Server](https://hexo.io/docs/server.html)
23+
24+
### Generate static files
25+
26+
``` bash
27+
$ hexo generate
28+
```
29+
30+
More info: [Generating](https://hexo.io/docs/generating.html)
31+
32+
### Deploy to remote sites
33+
34+
``` bash
35+
$ hexo deploy
36+
```
37+
38+
More info: [Deployment](https://hexo.io/docs/one-command-deployment.html)

source/_drafts/kotlin-kapt-note.md

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
title: 关于Kotlin注解处理器的一些坑
3+
date: 2019-10-14 00:34:14
4+
updated: 2019-10-14 00:34:14
5+
tags: [kotlin,kapt,java,idea,gradle]
6+
---
7+
8+
1. kapt 1.3.5 存在bug,不能用,连同 kotlin-gradle-plugin 一同降级到 1.3.41
9+
2. `build.gradle.kts``dependencies` 需要同时使用 `implementation``kapt` 引用 `com.google.auto.service:auto-service` ,否则无法识别使用Kotlin编写的注解处理器
10+
```kotlin
11+
dependencies{
12+
implementation("com.google.auto.service:auto-service:$googleAutoServiceVersion")
13+
kapt("com.google.auto.service:auto-service:$googleAutoServiceVersion")
14+
}
15+
```
16+
3. 如果使用注解的类、函数签名、注解参数等包含顶级包声明的内容,javac可能出现找不到符号异常。不确定是不是bug。由于Windows下jdk可能使用中文locale,idea中Build中文报错可能显示成乱码,可以在Terminal中运行 `gradlew build` 查看错误原因(Terminal的文字编码是正确的)。

0 commit comments

Comments
 (0)