This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set nocompatible " be iMproved, required | |
filetype off " required | |
" Vundle | |
" https://github.com/gmarik/vundle | |
" | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
Plugin 'gmarik/Vundle.vim' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"+Auto Switch":{"color":"#55bb55","defaultProfileName":"__ruleListOf_Auto Switch","name":"Auto Switch","profileType":"SwitchProfile","revision":"14e9fa6c4b6","rules":[{"condition":{"conditionType":"HostWildcardCondition","pattern":"*.airitilibrary.com"},"profileName":"sss"},{"condition":{"conditionType":"HostWildcardCondition","pattern":"*.kickass.so"},"profileName":"sss"},{"condition":{"conditionType":"HostWildcardCondition","pattern":"*.backbonejs.org"},"profileName":"sss"},{"condition":{"conditionType":"HostWildcardCondition","pattern":"*cpro.baidu.com*"},"profileName":"ad"},{"condition":{"conditionType":"HostWildcardCondition","pattern":"*.polymer-project.org"},"profileName":"sss"},{"condition":{"conditionType":"HostWildcardCondition","pattern":"*.xda-developers.com"},"profileName":"sss"},{"condition":{"conditionType":"HostWildcardCondition","pattern":"*click.baidu.com"},"profileName":"ad"},{"condition":{"conditionType":"HostWildcardCondition","pattern":"*cb.baidu.*"},"profileName":"ad"},{"condition":{"c |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.dhlz.webService.util; | |
import java.util.Calendar; | |
import java.util.Date; | |
import java.util.concurrent.*; | |
/** | |
* User: seveniu | |
* Date: 11/12/14 | |
* Time: 5:46 PM |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local http=require("http") | |
local httpRequest = {} | |
function httpRequest:new() | |
local obj = {} | |
self.__index = self | |
return setmetatable(obj,self) | |
end | |
function httpRequest:getInstance() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function getElementsByXpath(xpath,document) { | |
var nodes = []; | |
var iterator = document.evaluate(xpath, document, null, XPathResult.UNORDERED_NODE_ITERATOR_TYPE, null ); | |
try { | |
var thisNode = iterator.iterateNext(); | |
while (thisNode) { | |
nodes.push(thisNode); | |
thisNode = iterator.iterateNext(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.fasterxml.jackson.core.type.TypeReference; | |
import com.fasterxml.jackson.databind.ObjectMapper; | |
import com.alibaba.fastjson.JSON; | |
import org.msgpack.MessagePack; | |
import org.msgpack.annotation.Message; | |
import java.io.IOException; | |
import java.util.ArrayList; | |
import java.util.List; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
带 http 的,url ---> (http|ftp|https):\/\/[\w\-_]+(\.[\w\-_]+)+([\w\-\.,@?^=%&:/~\+#]*[\w\-\@?^=%&/~\+#])? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.kaishengit.aopPivilegesManager; | |
import com.kaishengit.Util.ListUtil; | |
import com.kaishengit.dao.GroupDao; | |
import com.kaishengit.exception.ServiceException; | |
import com.kaishengit.pojo.Group; | |
import com.kaishengit.pojo.User; | |
import org.aspectj.lang.annotation.*; | |
import javax.inject.Inject; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.kaishengit.Util; | |
import java.lang.reflect.InvocationTargetException; | |
import java.lang.reflect.Method; | |
import java.util.ArrayList; | |
import java.util.List; | |
/** | |
* Created with IntelliJ IDEA. | |
* User: niu |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.seveniu; | |
import java.util.ArrayList; | |
import java.util.List; | |
public class Permutation { | |
private int[] array; //传入数组 | |
private int num; //从数组中选出n个数 | |
private int[] result = new int[num]; //将选出的n个数存入数组 | |
private int count = 0; |