Skip to content

Instantly share code, notes, and snippets.

// ==UserScript==
// @name Search BaiduYun for Douban
// @namespace http://lmbj.net
// @description 在豆瓣页面右上角显示百度云中相关的资源,修改自Chrome插件豆瓣+百度网盘™:http://t.cn/z8XPRJh
// @include http://*.douban.com/subject/*
// @grant GM_xmlhttpRequest
// @updateURL https://userscripts.org/scripts/source/177423.meta.js
// @downloadURL https://userscripts.org/scripts/source/177423.user.js
// @version 0.2
// ==/UserScript==
@laomo
laomo / configvimforpython.sh
Last active December 16, 2015 03:38
auto config vim for python
#!/bin/bash
#######################################################################################
# auto config vim for python
# author : laomo(lmbj.net)
# date : 2013-4-12
# form https://github.com/gmarik/vundle and https://github.com/fisadev/fisa-vim-config
#######################################################################################
# get vim plugin manager Vundle
@laomo
laomo / Share.java
Last active December 11, 2015 22:39
完美实现同时分享图片和文字(Intent.ACTION_SEND)
private void share(String content, Uri uri){
Intent shareIntent = new Intent(Intent.ACTION_SEND);
if(uri!=null){
shareIntent.putExtra(Intent.EXTRA_STREAM, uri);
shareIntent.setType("image/*");
//当用户选择短信时使用sms_body取得文字
shareIntent.putExtra("sms_body", content);
}else{
shareIntent.setType("text/plain");
}