Skip to content

Commit

Permalink
Add filename linter & tools
Browse files Browse the repository at this point in the history
  • Loading branch information
huan committed Jun 17, 2019
1 parent 4e82fd0 commit a12d778
Show file tree
Hide file tree
Showing 21 changed files with 206 additions and 19 deletions.
19 changes: 19 additions & 0 deletions .editorconfig
@@ -0,0 +1,19 @@
# Editor configuration, see http://editorconfig.org
root = true

[*]
charset = utf-8
indent_style = space
indent_size = 2
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true

[*.md]
max_line_length = 0
trim_trailing_whitespace = false

# 4 tab indentation
[Makefile]
indent_style = tab
indent_size = 4
8 changes: 8 additions & 0 deletions .eslintrc.js
@@ -0,0 +1,8 @@

const rules = {
}

module.exports = {
extends: '@chatie',
rules,
}
2 changes: 2 additions & 0 deletions .gitignore
Expand Up @@ -64,3 +64,5 @@ typings/
Gemfile.lock
_site/
tmp/

package-lock.json
2 changes: 1 addition & 1 deletion docs/_posts/2019-01-06-beta-vae-introduction.md
Expand Up @@ -14,7 +14,7 @@ header:

Poster for [2019-01-06 CAIC(Conversaional AI Club)第二十一次CAIC沙龙活动通知](https://github.com/BUPT/ai-ml.club/issues/51)

![Beta-VAE]({{ '/assets/2019/2019-01-06-beta-vae-introduction-celeba_h_beta10_z32_traverse.jpg' | relative_url }})
![Beta-VAE]({{ '/assets/2019/2019-01-06-beta-vae-introduction-celeba-h-beta10-z32-traverse.jpg' | relative_url }})
> [Pytorch implementation of β-VAE](https://github.com/1Konny/Beta-VAE)
> Beta-VAE
Expand Down
Expand Up @@ -9,7 +9,7 @@ categories:
tags:
- video captioning
header:
teaser: /assets/2019/2019-03-03-Mila.png
teaser: /assets/2019/2019-03-03-mila.png
---


Expand Down Expand Up @@ -108,4 +108,4 @@ header:


### 引用与参考
- [Describing Videos by Exploiting Temporal Structure](https://arxiv.org/pdf/1502.08029)
- [Describing Videos by Exploiting Temporal Structure](https://arxiv.org/pdf/1502.08029)
2 changes: 1 addition & 1 deletion docs/_posts/2019-04-14-seminar-meeting-minutes-2-7.md
Expand Up @@ -43,7 +43,7 @@ header:

- 廖豪劲 @YapheeetS
> [Natural Language Processing for Information Extraction](https://bupt.github.io/conversational-ai-club/#/papers/natural-language-processing-for-information-extraction-2018)知识提取的综述,介绍了一些非常常用的模型
![廖豪劲]({{ '/assets/2019/seminar-2-7-poster-yapheeetS.jpg' | relative_url }})
![廖豪劲]({{ '/assets/2019/seminar-2-7-poster-yapheeets.jpg' | relative_url }})

----
授蛋仪式
Expand Down
2 changes: 1 addition & 1 deletion docs/_posts/2019-04-21-seminar-meeting-minutes-2-8.md
Expand Up @@ -9,7 +9,7 @@ categories:
tags:
-
header:
teaser: /assets/2019/seminar-2-8-group-photo.jpeg
teaser: /assets/2019/seminar-2-8-group-photo.jpg
---

<< 本次沙龙通知: [#89](https://github.com/BUPT/ai-ml.club/issues/89) <<
Expand Down
8 changes: 4 additions & 4 deletions docs/_posts/2019-05-05-seminar-meeting-minutes-2-9.md
Expand Up @@ -9,7 +9,7 @@ categories:
tags:
-
header:
teaser: /assets/2019/seminar-2-9-group-photo.jpeg
teaser: /assets/2019/seminar-2-9-group-photo.jpg
---

<< 本次沙龙通知: [#95](https://github.com/BUPT/ai-ml.club/issues/95) <<
Expand All @@ -31,11 +31,11 @@ header:

1. 段嘉铭 @VDeamoV 分享 [Histograms of Oriented Gradients for Human Detection](https://hal.inria.fr/file/index/docid/548512/filename/hog_cvpr2005.pdf): 通过方向梯度直方图(Histograms of Oriented Gradient,HOG)对行人进行检测,它通过计算局部区域的梯度方向并进行统计来作为该局部区域的特征。

![段嘉铭]({{ '/assets/2019/seminar-2-9-duanjm-HOG.jpg' | relative_url }})
![段嘉铭]({{ '/assets/2019/seminar-2-9-duanjm-hog.jpg' | relative_url }})

3. 刘云 @fuyunfuyun666 分享 [Region-of-Interest(RoI) Pooling](http://papers.nips.cc/paper/5638-faster-r-cnn-towards-real-time-object-detection-with-region-proposal-networks.pdf): 在计算机视觉领域中的一个常用池化技术,把不同大小的图片映射到相同大小的向量然后进行分类。

![刘云]({{ '/assets/2019/seminar-2-9-liuyun-roiPooling.jpg' | relative_url }})
![刘云]({{ '/assets/2019/seminar-2-9-liuyun-roipooling.jpg' | relative_url }})

## 授蛋仪式

Expand All @@ -44,7 +44,7 @@ header:

## 集体合照

![合照]({{ '/assets/2019/seminar-2-9-group-photo.jpeg' | relative_url }})
![合照]({{ '/assets/2019/seminar-2-9-group-photo.jpg' | relative_url }})

## 沙龙结论

Expand Down
2 changes: 1 addition & 1 deletion docs/_posts/2019-06-09-seminar-meeting-minutes-2-13.md
Expand Up @@ -89,7 +89,7 @@ CPM检测人体关节点
## After Party
AfterParty 第三次活动顺利结束!

![AfterParty]({{ '/assets/2019/seminar-2-13/after_party.jpg' | relative_url }})
![AfterParty]({{ '/assets/2019/seminar-2-13/after-party.jpg' | relative_url }})

## 沙龙结论
1. 下一任主席林博,副主席陈帝羲
Expand Down
16 changes: 8 additions & 8 deletions docs/_posts/2019-06-16-seminar-meeting-minutes-2-14.md
Expand Up @@ -9,7 +9,7 @@ categories:
tags:
-
header:
teaser: /assets/2019/seminar-2-14/after_party.jpg
teaser: /assets/2019/seminar-2-14/after-party.jpg
---

<< 本次沙龙通知: [#137](https://github.com/BUPT/ai-ml.club/issues/137) <<
Expand All @@ -31,31 +31,31 @@ header:
> 分享了[Weight Agnostic Neural Networks](https://arxiv.org/abs/1906.04358)
新的思维方式:从 `固定神经网络架构搜索权重参数``固定权重参数搜索神经网络架构`

![朱正源]({{ '/assets/2019/seminar-2-14/oral_zhuzhengyuan.jpg'| relative_url }})
![朱正源]({{ '/assets/2019/seminar-2-14/oral-zhuzhengyuan.jpg'| relative_url }})

### Poster

- 李卓桓 @huan
> [A Dual Reinforcement Learning Framework for Unsupervised Text Style Transfer](https://arxiv.org/abs/1905.10060)
将风格迁移应用到文本之上,通过一个`Style Classifier`进行非监督学习,风格Reward:我们想要的水军,重建Reward:Cycle-GAN的idea保证,好评变差评再变好评

![李卓桓]({{ '/assets/2019/seminar-2-14/poster_lizhuohuan.jpg' | relative_url }})
![李卓桓]({{ '/assets/2019/seminar-2-14/poster-lizhuohuan.jpg' | relative_url }})

- 刘云 @fuyunfuyun666
> [Character Region Awareness for Text Detection](https://arxiv.org/abs/1904.01941)
使用FPN+U-Net的字符级别的文字检测,利用`HeatMap`作为Label进行文本检测,加入文本间关联性的学习,利用弱监督进行字符级别检测

![刘云]({{ '/assets/2019/seminar-2-14/poster_liuyun.jpg' | relative_url }})
![刘云]({{ '/assets/2019/seminar-2-14/poster-liuyun.jpg' | relative_url }})

- 李京伦 @Jarvisgivemeasuit
> [Joint Face Detection and Alignment using Multi-task Cascaded Convolutional Networks](https://arxiv.org/abs/1604.02878)
MTCNN,人脸检测的经典方法,一直沿用至今,通过`3-Stage`的实时性人脸检测:P-Net,R-Net,O-Net

![李京伦]({{ '/assets/2019/seminar-2-14/poster_lijinglun.jpg' | relative_url }})
![李京伦]({{ '/assets/2019/seminar-2-14/poster-lijinglun.jpg' | relative_url }})

### 学术主席点评

![review]({{ '/assets/2019/seminar-2-14/academic_review.jpg' | relative_url }})
![review]({{ '/assets/2019/seminar-2-14/academic-review.jpg' | relative_url }})

## 脑洞拓展

Expand All @@ -65,7 +65,7 @@ MTCNN,人脸检测的经典方法,一直沿用至今,通过`3-Stage`的实

## 授蛋仪式

![授蛋]({{ '/assets/2019/seminar-2-14/awarded_egg.jpg' | relative_url }})
![授蛋]({{ '/assets/2019/seminar-2-14/awarded-egg.jpg' | relative_url }})

## 集体合照

Expand All @@ -81,7 +81,7 @@ MTCNN,人脸检测的经典方法,一直沿用至今,通过`3-Stage`的实

AfterParty 第五次活动顺利结束!

![AfterParty]({{ '/assets/2019/seminar-2-14/after_party.jpg' | relative_url }})
![AfterParty]({{ '/assets/2019/seminar-2-14/after-party.jpg' | relative_url }})

## 沙龙结论

Expand Down
17 changes: 17 additions & 0 deletions file-name-linter.json
@@ -0,0 +1,17 @@
{
"rules": {
"docs/_posts": [
"^docs/_posts/",
"/[0-9\\-a-z]+\\.",
"\\.md$"
],
"docs/assets": [
"^docs/assets/",
"/[0-9\\-a-z]+\\.",
"\\.(jpg|png|gif)$"
]
},
"ignore": [
"tests/fixtures/"
]
}
39 changes: 39 additions & 0 deletions package.json
@@ -0,0 +1,39 @@
{
"name": "ai-ml.club",
"version": "0.0.1",
"description": "AI ML Club",
"main": "index.js",
"directories": {
"doc": "docs"
},
"scripts": {
"lint": "npm run lint:fs",
"lint:fs": "file-name-linter file-name-linter.json",
"test": "npm run test:unit",
"test:unit": "blue-tape -r ts-node/register 'src/**/*.spec.ts' 'tests/**/*.spec.ts'"
},
"repository": {
"type": "git",
"url": "git+https://github.com/BUPT/ai-ml.club.git"
},
"keywords": [
"AI",
"ML",
"Club",
"AMC"
],
"author": "Huan LI <zixia@zixia.net>",
"license": "Apache-2.0",
"bugs": {
"url": "https://github.com/BUPT/ai-ml.club/issues"
},
"homepage": "https://github.com/BUPT/ai-ml.club#readme",
"devDependencies": {
"@chatie/eslint-config": "^0.6.12",
"@chatie/tsconfig": "^0.6.1",
"@types/glob": "^7.1.1",
"file-name-linter": "^1.1.0",
"glob": "^7.1.4",
"tstest": "^0.4.2"
}
}
3 changes: 2 additions & 1 deletion scripts/fit-image.sh
Expand Up @@ -13,4 +13,5 @@ mogrify \
-resize '1920>' \
${FILES}

cd -
cd -

73 changes: 73 additions & 0 deletions settings.json
@@ -0,0 +1,73 @@
{
"typescript.tsdk": "./node_modules/typescript/lib",

"editor.fontFamily": "'Fira Code iScript', Consolas, 'Courier New', monospace",
"editor.fontLigatures": true,

"editor.tokenColorCustomizations": {
"textMateRules": [
{
"scope": [
//following will be in italics (=Pacifico)
"comment",
// "entity.name.type.class", //class names
"keyword", //import, export, return…
"support.class.builtin.js", //String, Number, Boolean…, this, super
"storage.modifier", //static keyword
"storage.type.class.js", //class keyword
"storage.type.function.js", // function keyword
"storage.type.js", // Variable declarations
"keyword.control.import.js", // Imports
"keyword.control.from.js", // From-Keyword
"entity.name.type.js", // new … Expression
"keyword.control.flow.js", // await
"keyword.control.conditional.js", // if
"keyword.control.loop.js", // for
"keyword.operator.new.js", // new
],
"settings": {
"fontStyle": "italic",
},
},
{
"scope": [
//following will be excluded from italics (My theme (Monokai dark) has some defaults I don't want to be in italics)
"invalid",
"keyword.operator",
"constant.numeric.css",
"keyword.other.unit.px.css",
"constant.numeric.decimal.js",
"constant.numeric.json",
"entity.name.type.class.js"
],
"settings": {
"fontStyle": "",
},
}
]
},
"files.exclude": {
"dist/": true,
"doc/": true,
"node_modules/": true,
"package/": true,
},
"alignment": {
"operatorPadding": "right",
"indentBase": "firstline",
"surroundSpace": {,
"colon": [1, 1], // The first number specify how much space to add to the left, can be negative. The second number is how much space to the right, can be negative.
"assignment": [1, 1], // The same as above.
"arrow": [1, 1], // The same as above.
"comment": 2, // Special how much space to add between the trailing comment and the code.
// If this value is negative, it means don't align the trailing comment.
}
},
"editor.formatOnSave": false,
"python.pythonPath": "python3",
"eslint.validate": [
"javascript",
"typescript",
],

}
1 change: 1 addition & 0 deletions src/typings.d.ts
@@ -0,0 +1 @@
declare module 'glob-promise'
7 changes: 7 additions & 0 deletions tests/integration.spec.ts
@@ -0,0 +1,7 @@
#!/usr/bin/env ts-node

import test from 'tstest'

test('integration testing', async t => {
t.pass('ok')
})
20 changes: 20 additions & 0 deletions tsconfig.json
@@ -0,0 +1,20 @@
{
"extends": "@chatie/tsconfig",
"compilerOptions": {
"outDir": "dist",
},
"exclude": [
"node_modules/",
"dist/",
"tests/fixtures/",
],
"include": [
"app/**/*.ts",
"bin/*.ts",
"bot/**/*.ts",
"examples/**/*.ts",
"scripts/**/*.ts",
"src/**/*.ts",
"tests/**/*.spec.ts",
],
}

0 comments on commit a12d778

Please sign in to comment.