Skip to content

Instantly share code, notes, and snippets.

View Jonwing's full-sized avatar
🕹️

lAzUr Jonwing

🕹️
  • GuangZhou, China
View GitHub Profile
"""
This is a simple example of WebSocket + Tornado + Redis Pub/Sub usage.
Do not forget to replace YOURSERVER by the correct value.
Keep in mind that you need the *very latest* version of your web browser.
You also need to add Jacob Kristhammar's websocket implementation to Tornado:
Grab it here:
http://gist.github.com/526746
Or clone my fork of Tornado with websocket included:
http://github.com/pelletier/tornado
Oh and the Pub/Sub protocol is only available in Redis 2.0.0:
@Jonwing
Jonwing / zsh.md
Created August 7, 2017 03:35 — forked from tsabat/zsh.md
Getting oh-my-zsh to work in Ubuntu
@Jonwing
Jonwing / api.json
Last active April 14, 2017 08:49
test api doc
{
"swagger": "2.0",
"info": {
"title": "暴鸡电竞后台API文档",
"description": "命名规则:英文小写,多单词使用下划线分割。客户端在验证接口返回时,请优先检查HTTP代码所代表的含义。多数接口的请求头部都必须加上以下字段: \n Authorization: Token s2idhi3hxbni38190ybb22 (注意中间两个空格)",
"version": "v1"
},
"host": "te2.kaiheikeji.com",
"schemes": [
"http"