Giter Site home page Giter Site logo

codevar's Introduction

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.