Encore's Blog

Web 开发者 | 专注于WEB应用程序的软件开发人员
Keeping a fork up to date
工具 2017-09-21 Encore Shao

1. Clone your fork: > git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git 2. Add remote from original repository in your forked repository: > cd into/cloned/fork-repo > git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git > git fetch upstream 3. Updating your fork from original repo to keep up with their changes: > git pul...

Sublime - 如何在Mac中安装Sublime
工具 2017-07-04 邵壮

Install sublime 3 on Mac1. Download - https://www.sublimetext.com/32. Create alias `subl`sudo ln -s "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" /usr/local/bin/subl 3 Install package control -- doc link: https://packagecontrol.io/installation open sublime - show console then copy into console> import urllib.request,os,hashlib; h = 'df21e130d211cfc94d9b0905775a7c0f' + '1e...

标签: Sublime Tools
Sublime - 快捷键
工具 2017-07-01 邵壮

Sublime Text 3 快捷键 Ctrl+L 选择整行(按住-继续选择下行) Ctrl+KK 从光标处删除至行尾 Ctrl+Shift+K 删除整行 Ctrl+Shift+D 复制光标所在整行,插入在该行之前 Ctrl+J 合并行(已选择需要合并的多行时) Ctrl+KU 改为大写...

标签: Sublime Tools
Nginx - 配置静态页面
工具 2017-06-06 邵壮

如果你有需要将某个API文档完整下载到你自己的服务器中, 然后可以在你自己的域名下可以访问的话。 请看以下Nginx配置, 其中重要部分: autoindex off;  server { listen 80; ## listen for ipv4; this line is default and implied # listen [::]:80 default ipv6only=on; ## listen for ipv6 server_name api.hostname.com; location / { root /var/www/static/public; autoindex off; } }接下来,您可以试试了!

标签: Nginx
Amazon - Alexa Web Information Service (AWIS)
工具 2017-04-07 邵壮

Source: https://github.com/encoreshao/amazon-awis Amazon - Alexa Web Information Service (AWIS) Ruby Library for AWIS REST API - See: Alexa Docs How to installation gem install awis-sdk-ruby How to usage Configure your amazon certificate require 'awis' AWIS_CONFIG = YAML.load(File.read('awis.yml')) Awis.config do |c| c.access_key_id = AWIS_CO...

标签: Alexa AWIS Amazon Ruby
This website uses cookies to ensure you get the best experience on our website.
Got it!