Skip to content

Instantly share code, notes, and snippets.

View danhantao's full-sized avatar
🎯
Focusing

Jacob danhantao

🎯
Focusing
  • Jersey
  • 15:56 (UTC -12:00)
View GitHub Profile
http://www.cnblogs.com/gzggyy/archive/2012/07/19/2599645.html
@danhantao
danhantao / linux_ubuntu_sh.sh
Last active August 29, 2015 14:05
ubuntu环境变量
# create dir
mkdir -p dev/tools/bin
mkdir -p dev/workspaces
# install jdk1.8
cd ~/dev/tools/bin
wget --no-check-certificate --no-cookies --header "Cookie: oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/8u11-b12/jdk-8u11-linux-x64.tar.gz
tar -zxvf jdk-8u11-linux-x64.tar.gz
ln -s jdk1.8.0_11 jdk
# config jdk path
# install gcc
apt-get install -y gcc
# install make
apt-get install -y make
# install jdk
cd /usr/local/bin/
mkdir java
cd java/
1.下载
wget http://gerrit-releases.storage.googleapis.com/gerrit-2.9-rc2.war
2.重命名
mv gerrit-2.9-rc2.war gerrit.war
3.
sudo adduser gerrit2 # 添加用户
sudo userdel gerrit2 # 删除用户
sudo su gerrit2
Google Drive Realtime API的开源实现:
https://github.com/goodow/realtime-store
有JavaScript Android IOS 客户端。
在线演示:
http://realtimeplayground.goodow.com/
http://blog.csdn.net/codehxy/article/details/25641339
http://blog.csdn.net/adreamer_bj/article/details/10355409
https://github.com/commonsguy/cwac-richedit
@danhantao
danhantao / mven android plugin
Last active August 29, 2015 14:03
aar apklib maven android plugin
1.结论:无法使用apklib
apklib生成的R文件是final的,能打包成apklib。但是在drive-android里面引入的时候,报错依然说不是常量。
aar生成的R文件非final的,生成aar的时候就就提示,无法通过。
2.无法使用roboguice里面的一些注解。
这个可以用tag标签来解决。
3.Also, add this to the android-maven-plugin's <configuration> tag:
<attachSources>true</attachSources>
http://www.eclipse.org/paho/files/javadoc/index.html
http://www.infoq.com/articles/practical-mqtt-with-paho
http://public.dhe.ibm.com/software/dw/webservices/ws-mqtt/mqtt-v3r1.html
@danhantao
danhantao / word
Last active August 29, 2015 14:03
Protocol Specifications 协议规范
royalty-free n. 免版税
extremely adv. 非常,极其;极端地
code footprint 代码量
network bandwidth is at a premium 网络带宽非常宝贵
malformed adj. 畸形的,难看的
making its debut 首次亮相
quiesce vi. 静默
# 有道单词本
http://en.wikipedia.org/wiki/Operational_transformation
http://www.waveprotocol.org/whitepapers/operational-transform
http://sharejs.org/
https://www.facebook.com/pages/Operation-Transformation/227109470920
http://etherpad.org/