Skip to content
forked from xudaolong/CodeVar

生成可用的代码变量 (CodeVar that return u a better variable from Chinese to English . )

Notifications You must be signed in to change notification settings

liuarui/CodeVar

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CodeVar

fork 自 xudaolong 的 CodeVar https://github.com/xudaolong/CodeVar

开发基于 Javascriptalfy有道翻译api;

调整

  1. 修复了 xudaolong/CodeVar 旧版本有道 API 无法使用问题
  2. 调整 appKey 和 key 为 al 的 env 配置

使用

  1. 创建有道云 API https://ai.youdao.com/console/#/service-singleton/text-translation

  2. 获取应用 id 和应用密钥 Alt text

  3. 配置 workflow 环境变量(key 为应用密钥,appKey 为应用 id) Alt text Alt text

  4. 开始使用

依赖

  • Node.js 8+
  • Alfred 3

安装

点击下载

开发趋向

  • 使用标准的缩写(如 rpt)。✔️
  • 去掉虚词 and,or,the。✔️
  • 使用名字中的每一个重要单词,最多不超过 3 个。❎
  • 去掉无用的后缀(如 ing、ed 等)。❎
  • 确保不要改变变量的含义。✔️
  • 不要从每个单词中删除一个字符的方式来缩写。❎
  • 缩写要一致:如果将 function 缩写成 func。那么将整个项目里,最好都统一使用这种缩写。✔️

效果

小驼峰命名法:xt

大驼峰命名法:dt

下划线命名法:xh

常量命名法:cl

中划线命名法:zh

About

生成可用的代码变量 (CodeVar that return u a better variable from Chinese to English . )

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%