From c4de7078620277773fa2aca2da8338d078b4e7af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A2=A6=E5=A2=83=E8=BF=B7=E7=A6=BB?= Date: Fri, 21 Aug 2020 18:12:38 +0800 Subject: [PATCH] add count --- .gitignore | 1 + README-en.md | 6 +++++- README.md | 6 +++++- build_before_commit.sh | 5 ++++- countByAuthors.md | 23 +++++++++++++++++++++++ countByAuthors.sh | 41 +++++++++++++++++++++++++++++++++++++++++ 6 files changed, 79 insertions(+), 3 deletions(-) create mode 100644 countByAuthors.md create mode 100644 countByAuthors.sh diff --git a/.gitignore b/.gitignore index cb1711d1..c431bad6 100644 --- a/.gitignore +++ b/.gitignore @@ -16,3 +16,4 @@ tmp/ *.log node_modules/ *.lock +*.bak diff --git a/README-en.md b/README-en.md index bd1e7c6a..008fff4b 100644 --- a/README-en.md +++ b/README-en.md @@ -17,10 +17,14 @@ [中文](./README.md) | English -# Leetcode teamed up +## Leetcode teamed up It also supports LintCode, nowcoder and Jiuzhang algorithm +### Progress + +[Count by Authors](countByAuthors.md) + ### Registration route Just create a issue or leave a message at the end of the [dreamylost's blog](https://dreamylost.cn) diff --git a/README.md b/README.md index 1f9f7c15..cc806b8b 100644 --- a/README.md +++ b/README.md @@ -17,10 +17,14 @@ 中文 | [English](./README-en.md) -# Leetcode 组队刷题 +## Leetcode 组队刷题 同样支持 LintCode、牛客网、九章算法 +### 进度 + +[按人统计](countByAuthors.md) + ### 报名途径 提交 issue 或 [博客留言](https://dreamylost.cn) diff --git a/build_before_commit.sh b/build_before_commit.sh index 60f4b705..31c0c78c 100644 --- a/build_before_commit.sh +++ b/build_before_commit.sh @@ -46,4 +46,7 @@ do done # create article list -bash generate_art_list.sh > article_list.md \ No newline at end of file +bash generate_art_list.sh > article_list.md + +# count +bash countByAuthors.sh \ No newline at end of file diff --git a/countByAuthors.md b/countByAuthors.md new file mode 100644 index 00000000..135e87fe --- /dev/null +++ b/countByAuthors.md @@ -0,0 +1,23 @@ +Order by Join time +####Scala +dreamylost:=> 100 +sweeneycai:=> 17 + +####Java (match *.Java) +dreamylost:=> 324 + +ccccmaster:=> 3 + +poorguy:=> 1 + +wkk:=> 25 + +####Rust +dreamylost:=> 93 + +####Kotlin +dreamylost:=> 6 + +####Python +laozhang:=> 59 + diff --git a/countByAuthors.sh b/countByAuthors.sh new file mode 100644 index 00000000..93baaba2 --- /dev/null +++ b/countByAuthors.sh @@ -0,0 +1,41 @@ +#!/bin/bash + +# TODO, generate this shell automatically +echo "Order by Join time" > countByAuthors.md + +echo "####Scala" >> countByAuthors.md +echo "dreamylost:=> "`find ./scala-leetcode/src/main/scala/io/github/dreamylost -name "Leetcode*.scala" | wc -l | awk '{print $1}'` >> countByAuthors.md +echo "" >> countByAuthosr.md +echo "sweeneycai:=> "`find ./scala-leetcode/src/main/scala/io/github/sweeneycai -name "Leetcode*.scala" | wc -l | awk '{print $1}'` >> countByAuthors.md +echo "" >> countByAuthors.md + + +echo "####Java (match *.Java)" >> countByAuthors.md +echo "dreamylost:=> "`find ./java-leetcode/src/main/java/io/github/dreamylost -name "*.java" | wc -l | awk '{print $1}'` >> countByAuthors.md +echo "" >> countByAuthors.md +echo "ccccmaster:=> "`find ./java-leetcode/src/main/java/io/github/ccccmaster -name "*.java" | wc -l | awk '{print $1}'` >> countByAuthors.md +echo "" >> countByAuthors.md +echo "poorguy:=> "`find ./java-leetcode/src/main/java/io/github/poorguy -name "*.java" | wc -l | awk '{print $1}'` >> countByAuthors.md +echo "" >> countByAuthors.md +echo "wkk:=> "`find ./java-leetcode/src/main/java/io/github/wkk -name "*.java" | wc -l | awk '{print $1}'` >> countByAuthors.md +echo "" >> countByAuthors.md + + +echo "####Rust" >> countByAuthors.md +dreamylostLeetcode=`find ./rust-leetcode/src -name "leetcode*.rs" | wc -l | awk '{print $1}'` +dreamylostInterview=`find ./rust-leetcode/src -name "interview*.rs" | wc -l | awk '{print $1}'` +echo "dreamylost:=> "$(($dreamylostLeetcode + $dreamylostInterview)) >> countByAuthors.md +echo "" >> countByAuthors.md + + + +echo "####Kotlin" >> countByAuthors.md +echo "dreamylost:=> "`find ./kotlin-leetcode/src/main/kotlin/io/github/dreamylost -name "Leetcode*.kt" | wc -l | awk '{print $1}'` >> countByAuthors.md +echo "" >> countByAuthors.md + + +echo "####Python" >> countByAuthors.md +echo "laozhang:=> "`find ./python-leetcode/laozhang -name "leetcode*.py" | wc -l | awk '{print $1}'` >> countByAuthors.md +echo "" >> countByAuthors.md + +## append \ No newline at end of file -- GitLab