diff --git a/README.md b/README.md index 1e80926..d46065d 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ - + @@ -25,10 +25,10 @@ ## :artificial_satellite:今日图片 -

Lenticular Clouds over Mount Etna

+

You can't see me, Meow~~!

- Lenticular Clouds over Mount Etna + You can't see me, Meow~~!

@@ -40,25 +40,89 @@ - [书单](https://github.com/jwenjian/ghiblog/issues/22) 0 :speech_balloon: - [基于CircleCI自动生成并更新GitHub Issue博客的ReadMe](https://github.com/jwenjian/ghiblog/issues/1) 4 :speech_balloon: ## 最新 :new: -- [ColouriseSG: 利用AI给黑白照片上色](https://github.com/jwenjian/ghiblog/issues/96) 0 :speech_balloon: 2019-08-19 10:22:24 - |[:earth_africa:网站收藏](https://github.com/jwenjian/ghiblog/labels/%3Aearth_africa%3A%E7%BD%91%E7%AB%99%E6%94%B6%E8%97%8F) | [:robot: AI](https://github.com/jwenjian/ghiblog/labels/%3Arobot%3A%20AI) | +#### [ColouriseSG: 利用AI给黑白照片上色](https://github.com/jwenjian/ghiblog/issues/96) 0 :speech_balloon: 2019-08-19 10:22:24 -- [日本邮政官网 - 印章生成器](https://github.com/jwenjian/ghiblog/issues/95) 0 :speech_balloon: 2019-08-19 03:55:03 +:label: : [:earth_africa:网站收藏](https://github.com/jwenjian/ghiblog/labels/%3Aearth_africa%3A%E7%BD%91%E7%AB%99%E6%94%B6%E8%97%8F), [:robot: AI](https://github.com/jwenjian/ghiblog/labels/%3Arobot%3A%20AI) - |[:art:前端](https://github.com/jwenjian/ghiblog/labels/%3Aart%3A%E5%89%8D%E7%AB%AF) | [:earth_africa:网站收藏](https://github.com/jwenjian/ghiblog/labels/%3Aearth_africa%3A%E7%BD%91%E7%AB%99%E6%94%B6%E8%97%8F) | +ColouriseSG
+ColouriseSG A deep learning colouriser prototype specifically for old Singaporean photos. Try it yourself Learn more Chinese Girls School, Singapore, between…
+
+ +一个利用AI给 黑白照片上色的 网站,试了一下, 效果挺不错的。 +如下面这张黑白照片: + -- [PowerPoint Countdown Timer](https://github.com/jwenjian/ghiblog/issues/94) 0 :speech_balloon: 2019-08-19 03:54:57 - |[:earth_africa:网站收藏](https://github.com/jwenjian/ghiblog/labels/%3Aearth_africa%3A%E7%BD%91%E7%AB%99%E6%94%B6%E8%97%8F) | [:hammer:软件](https://github.com/jwenjian/ghiblog/labels/%3Ahammer%3A%E8%BD%AF%E4%BB%B6) | +[更多>>>](https://github.com/jwenjian/ghiblog/issues/96) -- [HTTP Content-type 对照表](https://github.com/jwenjian/ghiblog/issues/93) 0 :speech_balloon: 2019-08-19 03:54:57 +--- - |[:art:前端](https://github.com/jwenjian/ghiblog/labels/%3Aart%3A%E5%89%8D%E7%AB%AF) | [:earth_africa:网站收藏](https://github.com/jwenjian/ghiblog/labels/%3Aearth_africa%3A%E7%BD%91%E7%AB%99%E6%94%B6%E8%97%8F) | -- [remove.bg - Remove Background from Image ](https://github.com/jwenjian/ghiblog/issues/92) 0 :speech_balloon: 2019-08-19 03:54:52 +#### [日本邮政官网 - 印章生成器](https://github.com/jwenjian/ghiblog/issues/95) 0 :speech_balloon: 2019-08-19 03:55:03 - |[:earth_africa:网站收藏](https://github.com/jwenjian/ghiblog/labels/%3Aearth_africa%3A%E7%BD%91%E7%AB%99%E6%94%B6%E8%97%8F) | [:robot: AI](https://github.com/jwenjian/ghiblog/labels/%3Arobot%3A%20AI) | +:label: : [:art:前端](https://github.com/jwenjian/ghiblog/labels/%3Aart%3A%E5%89%8D%E7%AB%AF), [:earth_africa:网站收藏](https://github.com/jwenjian/ghiblog/labels/%3Aearth_africa%3A%E7%BD%91%E7%AB%99%E6%94%B6%E8%97%8F) + +日本邮政官网的印章生成器,可以上传图片生成有趣的印章图片
+ +效果见下图: + + + +[更多>>>](https://github.com/jwenjian/ghiblog/issues/95) + +--- + + +#### [PowerPoint Countdown Timer](https://github.com/jwenjian/ghiblog/issues/94) 0 :speech_balloon: 2019-08-19 03:54:57 + +:label: : [:earth_africa:网站收藏](https://github.com/jwenjian/ghiblog/labels/%3Aearth_africa%3A%E7%BD%91%E7%AB%99%E6%94%B6%E8%97%8F), [:hammer:软件](https://github.com/jwenjian/ghiblog/labels/%3Ahammer%3A%E8%BD%AF%E4%BB%B6) + +Create or Download a PowerPoint Countdown Timer
+ +网站提供了几个 PPT 倒计时模板: +- 蓝色背景, 5, 10, 15分钟 +- 蓝色背景, 5, 10, 15分钟 + +效果如下图: + + + +[更多>>>](https://github.com/jwenjian/ghiblog/issues/94) + +--- + + +#### [HTTP Content-type 对照表](https://github.com/jwenjian/ghiblog/issues/93) 0 :speech_balloon: 2019-08-19 03:54:57 + +:label: : [:art:前端](https://github.com/jwenjian/ghiblog/labels/%3Aart%3A%E5%89%8D%E7%AB%AF), [:earth_africa:网站收藏](https://github.com/jwenjian/ghiblog/labels/%3Aearth_africa%3A%E7%BD%91%E7%AB%99%E6%94%B6%E8%97%8F) + +HTTP Content-type 对照表
+ +提供了文件后缀名对应的HTTP Media type的对照表: + + + +[更多>>>](https://github.com/jwenjian/ghiblog/issues/93) + +--- + + +#### [remove.bg - Remove Background from Image ](https://github.com/jwenjian/ghiblog/issues/92) 0 :speech_balloon: 2019-08-19 03:54:52 + +:label: : [:earth_africa:网站收藏](https://github.com/jwenjian/ghiblog/labels/%3Aearth_africa%3A%E7%BD%91%E7%AB%99%E6%94%B6%E8%97%8F), [:robot: AI](https://github.com/jwenjian/ghiblog/labels/%3Arobot%3A%20AI) + +Remove Background from Image – remove.bg
+ +利用人工智能移除图片背景(抠图),尤其对于人像的抠图,效果很好。 + +官网示例如下: + + + +[更多>>>](https://github.com/jwenjian/ghiblog/issues/92) + +--- ## 分类 :card_file_box: diff --git a/assets/wordcloud.png b/assets/wordcloud.png index 2ad2b92..2beeca0 100644 Binary files a/assets/wordcloud.png and b/assets/wordcloud.png differ diff --git a/main.py b/main.py index a49ad06..e19bff7 100644 --- a/main.py +++ b/main.py @@ -92,7 +92,8 @@ def bundle_summary_section(): {3}

-'''.format(user_login, total_label_count, cur_time, pic_of_the_day.title, pic_of_the_day.url, pic_of_the_day.explanation) +'''.format(user_login, total_label_count, cur_time, pic_of_the_day.title, pic_of_the_day.url, + pic_of_the_day.explanation) return summary_section @@ -116,15 +117,29 @@ def format_issue_with_labels(issue: Issue): labels = issue.get_labels() labels_str = '' - if labels: - labels_str = '\n \t' + sub('|') for label in labels: - labels_str += sub('[%s](https://github.com/%s/ghiblog/labels/%s)\t|\t' % ( - label.name, user.get_user().login, urllib.parse.quote(label.name))) + labels_str += '[%s](https://github.com/%s/ghiblog/labels/%s), ' % ( + label.name, user.get_user().login, urllib.parse.quote(label.name)) - return '- [%s](%s) %s \t\t\t %s\n%s\n\n' % ( - issue.title, issue.html_url, sup('%s :speech_balloon:' % issue.comments), issue.created_at, labels_str) + if '---' in issue.body: + body_summary = issue.body[:issue.body.index('---')] + else: + body_summary = issue.body[:150] + + return ''' +#### [{0}]({1}) {2} \t {3} + +:label: : {4} + +{5} + +[更多>>>]({1}) + +--- + +'''.format(issue.title, issue.html_url, sup('%s :speech_balloon:' % issue.comments), issue.created_at, labels_str[:-2], + body_summary) def bundle_new_created_section(): diff --git a/requirements.txt b/requirements.txt index 1fe64c6..98e8d78 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,2 +1,3 @@ PyGithub wordcloud +matplotlib