View index.js
const RingCentral = require('ringcentral')
const dotenv = require('dotenv')
const token = JSON.parse(process.env.token)
const rc = new RingCentral({
server: RingCentral.server.sandbox,
appKey: '',
appSecret: ''
View callcenter.xml
<section sortOrder="0" name="reqGeneralInfo" label="General Information">
<item sortOrder="0" name="reqInternalName" label="Internal Name">RingCentralAdapterOpenCTI</item>
<item sortOrder="1" name="reqDisplayName" label="Display Name">RingCentral Call Center Adapter Open CTI</item>
<item sortOrder="2" name="reqAdapterUrl" label="CTI Adapter URL">/apex/RCPhone</item>
<item sortOrder="3" name="reqUseApi" label="Use CTI API">true</item>
<item sortOrder="4" name="reqSoftphoneHeight" label="Softphone Height">550</item>
<item sortOrder="5" name="reqSoftphoneWidth" label="Softphone Width">300</item>
<item sortOrder="6" name="reqSalesforceCompatibilityMode" label="Salesforce Compatibility Mode">Lightning</item>


  • Node v8.1.2
  • macOS 10.12.5
  • MacBook Pro (Retina, 15-inch, Mid 2015)

Speed (faster come first)

Ramda > Lodash > reduce > filter > for

  • 押金 3000

  • 物业费 11月8号 - 3月7号 共 4 个月,每月 47.5 元, 共 190

  • 电费 已通过支付宝生活缴费缴清3月份之前的,本月 1-7 号酌情给 20

  • 水费 支付宝生活缴费最近几个月一直显示未欠费

  • 煤气费 支付宝生活缴费一开始两个月显示未欠费,后来显示的数额比较大,相当之前半年多的费用。


  • 上一次抄表是11月10号,水表 0009, 煤气表 269.5
View passed.json
"payload": "{\"id\":201403814,\"repository\":{\"id\":12072164,\"name\":\"travis-webhook-demo\",\"owner_name\":\"tylerlong\",\"url\":null},\"number\":\"5\",\"config\":{\"language\":\"node_js\",\"node_js\":[\"7.5\"],\"notifications\":{\"webhooks\":{\"urls\":[\"\"],\"on_success\":\"always\",\"on_failure\":\"always\",\"on_start\":\"always\"}},\".result\":\"configured\",\"group\":\"stable\",\"dist\":\"precise\"},\"status\":0,\"result\":0,\"status_message\":\"Passed\",\"result_message\":\"Passed\",\"started_at\":\"2017-02-14T05:55:49Z\",\"finished_at\":\"2017-02-14T05:56:19Z\",\"duration\":30,\"build_url\":\"\",\"commit_id\":57662095,\"commit\":\"7a079a2999a54981d1e5ba4c668a90441234da2f\",\"base_commit\":null,\"head_commit\":null,\"branch\":\"master\",\"message\":\"Add one more test case\",\"compare_url\":\"


聊天机器人(Chatbot)简介。Chatbot 无疑是当前非常火的一个研究领域和产品方向。Chatbot 是场交互革命,也是一个多技术融合的平台。 Chatbot 从形式上讲是电脑程序利用人工智能去和人类对话。其最原始的形式是电脑和人类通过文字进行交互。借助语音识别和文字转语音服务,可以实现类似真人之间的语言交互效果。Chatbot 的输入形式基本上是文字或者语音,输出形式却可以多种多样,比如文字、语音、图片、视频等等。

Chatbot 技术方兴未艾,Apple 公司的 Siri,Microsoft 公司的小冰,Amazon 的 Echo,谷歌公司前不久收购了……国际巨头纷纷在这一领域布局。另外一家不得不提的公司是 Slack,这家公司在成立不到一年的时候估值已经超过了30亿,众多第三方公司围绕 Slack 打造了一个 Chatbot 生态。种种迹象表明,Chatbot 技术绝对是未来 5 到 10 年最值得投资的技术。



I am thinking maybe it's better to create our own bot platform to replace hubot. I have several reasons to say so:

  1. Hubot is simple, It's easy to replace it. Basically what hubot does is: receive and send messages (via adapters), match with regex and invoke scripts.
  2. It's not hard to reuse existing hubot scrits for other bot platforms. Most hubot scrits are quite regular, thanks to the simplicity of Hubot. We could even write a tool to migrate exiting hubot scripts automatically.
  3. Hubot has long history but it has never been truely popular. Which implies that there are essential architectural defeats.
    1. It doesn't provide enough levels of abstraction from OOA's perspective. It only provides end programmers with the concept of "scripts".
    2. A "script" file (js or coffee) could have several "scripts", and the help information of those scripts are read from the comments of the source code.
    3. The concept is confusing and the design is not very elegant.
  4. Hubot doesn't support complex opera

React & Redux 学习笔记 - 第一篇:术语浅析

这是 React & Redux 学习笔记 系列文章的第一篇。这篇主要分析各种术语。参考来自各种技术官网的文档,夹杂了笔者的个人体会和理解。

文章分为两部分,第一部分讲 React 相关的术语,第二部分讲 Redux 相关的术语。每一部分都把相对最重要的术语放在了前面。

通过阅读这篇文章,读者可以全面掌握各种核心 React & Redux 术语。 在听别人讨论相关技术问题的时候,能够及时进入语境,理解别人谈话的内容,不再如闻天书、不知所以。


View AXWindow.swift
import Cocoa
class AXWindow {
let app: AXUIElement
let window: AXUIElement
init(app: AXUIElement, window: AXUIElement) { = app
self.window = window


  • 煤气表读数:xxx,上次是 500.463
  • 电表读书:yyy,上次是 11887.6
  • 水表读数: zzz,上次是 30


  • 煤气 xxx - 500.463 = ,每立方 3.5 元,共计: 元