Skip to content

Instantly share code, notes, and snippets.

@doubledouble
doubledouble / fcitx
Created February 26, 2013 17:04
CentOs 6.3 安装fcitx中文输入法
版本库地址
http://www.linuxsir.org/bbs/thread381852.html
配置
http://www.iflym.com/index.php/linux-develop/centos-6-0-use-fcitx-as-imput-method.html
http://www.ha97.com/2680.html
http://www.linuxidc.com/Linux/2012-07/65238.htm
@doubledouble
doubledouble / linux 网卡.md
Last active December 14, 2015 08:08
centos 网卡相关问题
@doubledouble
doubledouble / shortcut.md
Last active December 14, 2015 08:09
shortcut
@doubledouble
doubledouble / builder模式.md
Last active December 14, 2015 08:29
builder模式
@doubledouble
doubledouble / LoaderTest.java
Last active December 14, 2015 11:59
Java父类子类加载
package test;
/**
*
* @author Administrator
*
*/
public class LoaderTest {
@doubledouble
doubledouble / SynchronizedTest.java
Created March 4, 2013 17:22
SynchronizedTest 4个线程 2个加一,2个减一
package test;
public class SynchronizedTest {
public static void main(String[] args) {
J j = new J();
Thread inc1 = new Thread(new IncrementThread(j), "inc1");
Thread inc2 = new Thread(new IncrementThread(j), "inc2");
Thread dec1 = new Thread(new DecrementThread(j), "dec1");
Thread dec2 = new Thread(new DecrementThread(j), "dec2");
@doubledouble
doubledouble / ALG.java
Last active December 14, 2015 13:18
插入排序,归并排序
package test.algorithm;
import java.util.Arrays;
/**
* from wiki http://zh.wikipedia.org/wiki/插入排序
* http://zh.wikipedia.org/wiki/归并排序
**/
public class ALG {
@doubledouble
doubledouble / validate.addmethod.js
Created May 8, 2013 10:59
jQuery validate addMethod
var vcity={ 11:"北京",12:"天津",13:"河北",14:"山西",15:"内蒙古",
21:"辽宁",22:"吉林",23:"黑龙江",31:"上海",32:"江苏",
33:"浙江",34:"安徽",35:"福建",36:"江西",37:"山东",41:"河南",
42:"湖北",43:"湖南",44:"广东",45:"广西",46:"海南",50:"重庆",
51:"四川",52:"贵州",53:"云南",54:"西藏",61:"陕西",62:"甘肃",
63:"青海",64:"宁夏",65:"新疆",71:"台湾",81:"香港",82:"澳门",91:"国外"
};
isIdCardNo = function(card)
{
<html>
<div id="header">
<a href="javascript:document.getElementById('my_iframe').contentWindow.history.back();" target="iframe">返回</a>
</div>
<div id="main">
<iframe id="my_iframe">内容</iframe>
</div>
</html>