寻找不同语言和地区的翻译 #23

Readme中添加了功能标志的开发指标

眼前一亮的Readme统计数据






你是早起的还是夜间的?


你一天中什么时候工作效率最高?


你用什么语言编写代码?


让我们在你的个人资料中查看一下readme!

Report Bug
·
Request Feature

准备工作

  1. 您需要用2条注释更新markdown文件(.md)。您可以参考这里进行更新

  2. 您需要WakaTime API密钥。您可以从WakaTime帐户设置中获得

    • 如果你是WakaTime的新手,你可以参考这里
  3. 如果您正在运行操作以获取提交指标,则需要具有repo和用户范围的GitHub API令牌

    启用存储库范围似乎很危险

    但此 GitHub 操作仅访问您的提交时间戳以及您贡献的存储库中添加或删除的代码

    • 你可以用这个例子来计算
  4. 您需要将WakaTime API密钥和GitHub API令牌保存在存储库机密中。您可以在存储库的“设置”中找到它。请确保将其保存为以下内容

    • WakaTime API密钥为 WAKATIME_API_KEY=<你的wakatime API密钥>
    • GitHub个人访问令牌为 GH_TOKEN=<你的github access token>
  5. 您可以根据要求启用和禁用功能标志

此操作将在印度标准时间的每天0点进行

更新你的 Readme 文件

在你的README.md中添加注释,如下所示:

<!--START_SECTION:waka-->
<!--END_SECTION:waka-->

根据(可用标志部分)[#flags-available],waka可以被SECTION_NAME 标志中指定的任何字符串取代

这些行将是我们 Dev Metrics 的入口点

新加入WakaTime的人

WakaTime让你知道你真正花在编码上的时间。这有助于提高您的生产力和竞争优势

个人主页仓库

你需要获得一个带有 repo 和用户范围的 GitHub 访问令牌,并将其保存在 Repo Secrets 中 GH_TOKEN = <Your GitHub Access Token>

以下是运行它的示例工作流文件:

name: Waka Readme

on:
schedule:
# Runs at 12am IST
- cron: '30 18 * * *'
workflow_dispatch:
jobs:
update-readme:
name: Update Readme with Metrics
runs-on: ubuntu-latest
steps:
- uses: anmol098/waka-readme-stats@master
with:
WAKATIME_API_KEY: ${{ secrets.WAKATIME_API_KEY }}
GH_TOKEN: ${{ secrets.GH_TOKEN }}
  • 现在你可以提交并等待自动运行,但你也可以触发运行它来查看结果。只需进入Repo中的Actions,选择你的Profile Readme Development Stats工作流,然后点击运行工作流。现在等待一两分钟,你就可以看到你的变化了

额外补充

  1. 如果你想把其他信息添加到你的统计中,你可以在你的工作流程文件中添加多个 FLAGS,默认情况下,所有标志都是启用的

由于执行了繁重的操作而导致的代码标志行除外

- uses: anmol098/waka-readme-stats@master
with:
WAKATIME_API_KEY: ${{ secrets.WAKATIME_API_KEY }}
GH_TOKEN: ${{ secrets.GH_TOKEN }}
SHOW_OS: "False"
SHOW_PROJECTS: "False"

可用的 Flags


LOCALE 这个标志可以用来在你的语言中显示统计信息,默认是英语,使用Locale Short Hand来传递标志变量,最终结果的例子可以在这里找到

SECTION_NAME 标志可以设置为任何字符串,它将是readme中要替换的部分的名称

COMMIT_BY_ME 标志可以设置为True,以使用你的名字和电子邮件提交代码

COMMIT_MASSAGE 标志可以设置为消息提交,默认为 "用开发指标更新"

COMMIT_USERNAME标志可以设置为username以提交代码,默认为“readme-bot”

COMMIT_EMAIL 标志可设置为提交代码的电子邮件,默认为 "41898282+github-actions[bot]@users.noreply.github.com"

SHOW_UPDATE_DATE 标志可以被设置为 “True”,以便在段落末尾显示更新的日期

UPDATE_DATE_FORMAT 可以设置标志以将更新的日期转换为一种格式,默认为 "%d/%m/%Y %H:%M:%S"

SHOW_LINES_OF_CODE 标志可以被设置为 "True",以显示迄今为止所写的代码行数

SHOW_TOTAL_CODE_TIME 标志可以设置为 False 以隐藏代码时间

SHOW_PROFILE_VIEWS 标志可以设置为 False 以隐藏个人主页访问量

SHOW_COMMIT 标志可以设置为 False,以隐藏提交统计信息

I'm an early

 Morning    95 commits     ███████░░░░░░░░░░░░░░░░░░   30.55%
Daytime 78 commits ██████░░░░░░░░░░░░░░░░░░░ 25.08%
Evening 112 commits █████████░░░░░░░░░░░░░░░░ 36.01%
Night 26 commits ██░░░░░░░░░░░░░░░░░░░░░░░ 8.36%

SHOW_DAYS_OF_WEEK 标志可以设置为 False,以隐藏一周中不同日期的提交

 I'm Most Productive on Sundays

Monday       50 commits     ███░░░░░░░░░░░░░░░░░░░░░░   13.19%
Tuesday 85 commits █████░░░░░░░░░░░░░░░░░░░░ 22.43%
Wednesday 56 commits ███░░░░░░░░░░░░░░░░░░░░░░ 14.78%
Thursday 44 commits ███░░░░░░░░░░░░░░░░░░░░░░ 11.61%
Friday 28 commits █░░░░░░░░░░░░░░░░░░░░░░░░ 7.39%
Saturday 30 commits ██░░░░░░░░░░░░░░░░░░░░░░░ 7.92%
Sunday 86 commits █████░░░░░░░░░░░░░░░░░░░░ 22.69%

SHOW_LANGUAGE 标志可以设置为 False 来隐藏你使用的编程语言

 Languages:
JavaScript 5 hrs 26 mins ███████████████░░░░░░░░░░ 61.97%
PHP 1 hr 35 mins ████░░░░░░░░░░░░░░░░░░░░░ 18.07%
Markdown 1 hr 9 mins ███░░░░░░░░░░░░░░░░░░░░░░ 13.3%
Python 22 mins █░░░░░░░░░░░░░░░░░░░░░░░░ 4.32%
XML 8 mins ░░░░░░░░░░░░░░░░░░░░░░░░░ 1.62%

SHOW_OS 标志可以被设置为 False,以隐藏使用操作系统的详细信息

 Operating Systems:
Windows 8 hrs 46 mins █████████████████████████ 100.0%

SHOW_PROJECTS 标志可以设置为 False 以隐藏正在处理的项目

‍ Projects:
ctx_connector 4 hrs 3 mins ███████████░░░░░░░░░░░░░░ 46.33%
NetSuite-Connector 1 hr 31 mins ████░░░░░░░░░░░░░░░░░░░░░ 17.29%
mango-web-master 1 hr 12 mins ███░░░░░░░░░░░░░░░░░░░░░░ 13.77%
cable 54 mins ██░░░░░░░░░░░░░░░░░░░░░░░ 10.41%
denAPI 40 mins ██░░░░░░░░░░░░░░░░░░░░░░░ 7.66%

SHOW_TIMEZONE 标志可以设置为 False 以隐藏您所在的时区

︎ Timezone: Asia/Calcutta

SHOW_EDITORS 标志可以设置为 False 以隐藏使用的代码编辑器列表

 Editors:
WebStorm 6 hrs 47 mins ███████████████████░░░░░░ 77.43%
PhpStorm 1 hr 35 mins ████░░░░░░░░░░░░░░░░░░░░░ 18.07%
PyCharm 23 mins █░░░░░░░░░░░░░░░░░░░░░░░░ 4.49%

SHOW_LANGUAGE_PER_REPO 标志可以设置为 False 以隐藏不同语言和框架中的存储库数量

I mostly code in Vue

Vue          8 repos        ██████░░░░░░░░░░░░░░░░░░░   25.0%
Java 6 repos ████░░░░░░░░░░░░░░░░░░░░░ 18.75%
JavaScript 6 repos ████░░░░░░░░░░░░░░░░░░░░░ 18.75%
PHP 3 repos ██░░░░░░░░░░░░░░░░░░░░░░░ 9.38%
Python 2 repos █░░░░░░░░░░░░░░░░░░░░░░░░ 6.25%
Dart 2 repos █░░░░░░░░░░░░░░░░░░░░░░░░ 6.25%
CSS 2 repos █░░░░░░░░░░░░░░░░░░░░░░░░ 6.25%

SHOW_SHORT_INFO 标志可以设置为 False 以隐藏用户的简短有趣事实信息

这一部分需要有用户许可的个人访问令牌,否则这里显示的数据将是不正确的

My GitHub Data

433 Contributions in year 2020

 Used 292.3 kB in GitHub's Storage

 Opted to Hire

 25 Public Repository

15 Owned Private Repository

SHOW_LOC_CHART 标志可以设置为 "False",以隐藏在不同年份不同季度编写的代码行

IGNORED_REPOS 标志可以设置为"waka-readme-stats, my-first-repo"(只是一个例子),以忽略一些你不希望被计算在内的repos

SYMBOL_VERSION 标志可以为进度条设置符号(默认:1

Version Done block Empty block
1
2
3
DEBUG_LOGGING 可以设置标志以增加操作输出的详细程度,默认情况下等于内部运行程序调试属性

Timeline

支持这个项目

我开源了几乎所有我能开源的东西,并试图回复每个使用这些项目需要帮助的人。显然,这需要时间。你可以免费使用这项服务

但是,如果您正在使用这个项目并且对它感到满意,或者只是想鼓励我继续创作东西,那么您可以通过几种方式做到这一点:

  • 当你在你的自述中使用这个Action时,请给予适当的赞誉,并链接到它:D
  • 为项目加星标和分享(俗话说就是点点star)
  • 你可以通过PayPal进行一次性捐款。我可能会买一杯啤酒葡萄酒

非常感谢!


贡献

欢迎投稿!!请分享任何功能,并添加单元测试!使用拉动请求和问题系统来贡献

部分贡献者

  1. Anmol Pratap Singh: Maintainer
  2. Alexander Sergeev: Maintainer
  3. Aravind V. Nair: Maintainer
  4. Prabhat Singh: For code timeline graph #18
  5. Hedy Li: For Pull Request #34 and #23
  6. Pedro Torres: For Pull Request #29
  7. Aaron Meese: For Pull Request #45
  8. Arnav Jindal: For Pull Request #48
  9. Daniel Rowe: For Pull Request #57
  10. Ss5h: For adding support for natural sentence writing for translation #136
特别要提到的是那些目前正在使他们的个人资料readme更棒的人

- [Stanislas](https://github.com/angristan)
- [Pratik Kumar](https://github.com/pr2tik1)
- [Vladimir](https://github.com/sergeev-vn)
- [Pedro Torres](https://github.com/Corfucinas)
- [leverglowh](https://github.com/leverglowh)
- [patdc](https://github.com/patdc)
- [极客挖掘机](https://github.com/meteor1993)
- [Fan()](https://github.com/Fanduzi)
- [Miller Camilo Vega](https://github.com/minoveaz)
- [XLor](https://github.com/yjl9903)
- [Jesse Okeya](https://github.com/jesseokeya)
- [anaiel](https://github.com/anaiel)
- [Dipto Mondal](https://github.com/diptomondal007)
- [Jerry F. Zhang](https://github.com/JerryFZhang)
- [Karan Singh](https://github.com/karan06126)
- [Erwin Lejeune](https://github.com/guilyx)
- [Manuel Cepeda](https://github.com/mecm1993)
- [Jonathan S](https://github.com/TGTGamer)
- [Tsotne Gvadzabia](https://github.com/RockiRider)
- [Miray](https://github.com/MirayXS)
- [Varad Patil](https://github.com/varadp2000)
- [Prabhat Singh](https://github.com/prabhatdev)
- [Nikhil](https://github.com/nikhilgorantla)
- [大白](https://github.com/2720851545)
- [Du Yizhuo](https://github.com/dyzdyz010)
- [Manas Talukdar](https://github.com/manastalukdar)
- [Simranjeet Singh](https://github.com/smrnjeet222)
- [Aaron Meese](https://github.com/ajmeese7)
- [Prasad Narkhede](https://github.com/p014ri5)
- [Manish Kushwaha](https://github.com/tzmanish)
- [Hedy Li](https://github.com/hedythedev)
- [SHIMIZU Taku](https://github.com/takuan-osho)
- [Jude Wilson](https://github.com/mr-winson)
- [Daniel Rowe](https://github.com/DanRowe)
- [Muhammad Hassan Ahmed](https://github.com/hassan11196)
- [Alessandro Maggio](https://github.com/Tkd-Alex)
- [Siddharth Gupta](https://github.com/siddg97)
- [Dev-Mehta](https://github.com/Dev-Mehta/)
- [> EdgyCoder ](https://github.com/edgycoder)
- [Korel Kashri](https://github.com/korelkashri)
- [Gustavo Barbosa](https://github.com/gusbdev)
- [eagleanurag](https://github.com/eagleanurag)
- [Aravind V. Nair](https://github.com/aravindvnair99)
- [Raman Preet Singh](https://github.com/raman08)
- [Hayat Tamboli](https://github.com/hayat-tamboli)
- [Henry Boisdequin](https://github.com/henryboisdequin)
- [Raman Preet Singh](https://github.com/raman08)
- [Aadit Kamat](https://github.com/aaditkamat)
- [Subhalingam D](https://github.com/subhalingamd)
- [Adil Akhmetov](https://github.com/weeebdev)
- [Isaac Maldonado](https://github.com/einjunge99)
- [Syed Faateh Sultan Kazmi](https://github.com/faatehsultan)
- [Shreyam Maity](https://github.com/ShreyamMaity)
- [Sufiane](https://github.com/sufiane)
- [Muhammad Bilal](https://github.com/BilalJaved15)
- [Waterdev](https://github.com/UnrealValentin)
- [Aditya Prasad S](https://github.com/adityaprasad502)
- [C. Vinicius Santos](https://github.com/c-viniciussantos)
- [James Tufarelli](https://github.com/Minituff)
- [Muhammad Bilal](https://github.com/BilalJaved15)
- [Wyatt Walsh](https://www.github.com/wyattowalsh)
- [Nithin Balaji](https://github.com/thenithinbalaji)

  • 还有你!如果你现在正在使用它,而你不在名单上,请通过发送特别提及问题告诉我们,我们很高兴将你加入名单

使用 和 Python 制作

灵感来源

Awesome Pinned Gists

athul/waka-readme

这个项目需要你的和

随着时间推移的Star图

WakaTime Readme Stats-开源项目翻译的更多相关文章

  1. Golang优秀开源项目汇总, 10大流行Go语言开源项目, golang 开源项目全集(golang/go/wiki/Projects), GitHub上优秀的Go开源项目

    Golang优秀开源项目汇总(持续更新...)我把这个汇总放在github上了, 后面更新也会在github上更新. https://github.com/hackstoic/golang-open- ...

  2. Github上关于iOS的各种开源项目集合(强烈建议大家收藏,查看,总有一款你需要)

    下拉刷新 EGOTableViewPullRefresh - 最早的下拉刷新控件. SVPullToRefresh - 下拉刷新控件. MJRefresh - 仅需一行代码就可以为UITableVie ...

  3. 如何参与一个 GitHub 开源项目?

    最近一年开源项目特别的热,很多技术大会或论坛都以开源项目作为主题进行探讨,可见这是一种趋势.而Github作为开源项目的著名托管地,可谓无 人不知,越来越多的个人和公司纷纷加入到Github的大家族里 ...

  4. iOS、mac开源项目及库汇总

    原文地址:http://blog.csdn.net/qq_26359763/article/details/51076499    iOS每日一记------------之 中级完美大整理 iOS.m ...

  5. 如何参与一个GitHub开源项目

    Github作为开源项目的著名托管地,可谓无人不知,越来越多的个人和公司纷纷加入到Github的大家族里来,为开源尽一份绵薄之力.对于个人来讲,你把自己的项目托管到Github上并不表示你参与了Git ...

  6. 开源项目Material Calendar View 学习记录 (一)

    开源项目Material Calendar View 学习记录 Github: https://github.com/prolificinteractive/material-calendarview ...

  7. 怎样在Github参与一个开源项目

    转载:http://www.csdn.net/article/2014-04-14/2819293-Contributing-to-Open-Source-on-GitHub 最近一年开源项目特别的热 ...

  8. golang开源项目qor快速搭建网站qor-example运行实践

    最近想找几个基于Go语言开发的简单的开源项目学习下,分享给大家,github上有心人的收集的awesome-go项目集锦:github地址 发现一个Qor项目: Qor 是基于 Golang 开发的的 ...

  9. github上关于iOS的各种开源项目集合(转)

    UI 下拉刷新 EGOTableViewPullRefresh - 最早的下拉刷新控件. SVPullToRefresh - 下拉刷新控件. MJRefresh - 仅需一行代码就可以为UITable ...

  10. iOS -- 开源项目和库

    TimLiu-iOS 目录 UI 下拉刷新 模糊效果 AutoLayout 富文本 图表 表相关与Tabbar 隐藏与显示 HUD与Toast 对话框 其他UI 动画 侧滑与右滑返回手势 gif动画 ...

随机推荐

  1. [架构]辨析: 高可用 | 集群 | 主从 | 负载均衡 | 反向代理 | 中间件 | 微服务 | 容器 | 云原生 | DevOps | ...

    词汇集 灾备 冷备份 双机热备份 异地容灾备份 云备份 灾难演练 磁盘阵列(RAID) 故障切换 心跳监测 高可用 集群 主从复制(Master-Slave) 多集群横向扩容(master-clust ...

  2. day06 循环和数据类型的内置方法

    循环加数据类型的内置方法 while 循环 for循环 range关键字 数据类型的内置方法 字符串的内置方法 while循环 while + continue #打印0-10的数字不打印6 n=0 ...

  3. 帝国ECMS静态生成为一行代码/静态页面打乱教程

    一.内容页变成一行修改1.打开文件e/class/functions.php2.找到以下函数 function GetHtml($classid,$id,$add,$ecms=0,$doall=0) ...

  4. 微服务 - Redis缓存 · 数据结构 · 持久化 · 分布式 · 高并发

    本篇内容基于 Redis v7.0 的阐述:官网:https://redis.io/ 本篇计划用 Docker 容器辅助部署,所以需要了解点 Docker 知识:官网:https://www.dock ...

  5. CentOS配置Django虚拟环境--坑点总结

    1.CentOS原装有python2.7,编译安装python3.X版本 2.sqlite-devel未安装 3.sqlite3版本过低报错 升级sqlite3版本 参考 https://blog.c ...

  6. MapStruct实体映射转换

    1.MapStruct简介 MapStruct是一个代码生成器,它基于约定优于配置的方法,极大地简化了Java bean类型之间映射的实现.生成的映射代码使用简单的方法调用,快速.类型安全且易于理解. ...

  7. FLV文件分析

    很久没看,做下关于FLV文件格式知识点回顾! 一.简单介绍        FLV(Flash Video)是Adobe公司推出的一种媒体封装格式.一个FLV文件,每个Tag类型都属于一个流.也就是说一 ...

  8. WPF Window设置ResizeMode="NoResize"

    WPF窗口设置属性ResizeMode="NoResize"时,回到桌面后,点击任意应用,都会将此窗口激活. 我们来看下详细操作: 1. WPF窗口设置属性ResizeMode 2 ...

  9. 安装dataX的问题,com.alibaba.datax.common.exception.DataXException: Code:[Common-00], Describe

    文章目录 报错 安装: 解决方法 总结 报错 com.alibaba.datax.common.exception.DataXException: Code:[Common-00], Describe ...

  10. Node.js躬行记(28)——Cypress自动化测试实践

    最近在研究如何提升项目质量,提炼了许多个用于自测的测试用例,但是每次修改后,都手工测试,成本太高,于是就想到了自动化测试. 在一年前已将 Cypress 集成到管理后台的项目中,不过没有投入到实践中. ...