View ssl.rules
1 2 3 4 5 6 7 8 9 10
# Basically the nginx configuration I use at konklone.com.
# I check it using https://www.ssllabs.com/ssltest/analyze.html?d=konklone.com
#
# To provide feedback, please tweet at @konklone or email eric@konklone.com.
# Comments on gists don't notify the author.
#
# Thanks to WubTheCaptain (https://wubthecaptain.eu) for his help and ciphersuites.
# Thanks to Ilya Grigorik (https://www.igvita.com) for constant inspiration.
 
server {
View generatorConfig.xml
1 2 3 4 5 6 7 8 9 10
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE generatorConfiguration
PUBLIC "-//mybatis.org//DTD MyBatis Generator Configuration 1.0//EN"
"http://mybatis.org/dtd/mybatis-generator-config_1_0.dtd">
 
<generatorConfiguration>
<!-- classPathEntry用于设置MBG的classPath,location可以等于只包含了数据库驱动的jar或zip路经 也可以是一个包含驱动的目录。它是一个可选的元素。 -->
<classPathEntry location="c:/ojdbc14.jar" />
<!-- targetRuntime代码生成目标,默认是MyBatis3,可以是Ibatis2Java2或者Ibatis2Java5 -->
<context id="DB2Tables" targetRuntime="MyBatis3">
View Generatorconfig.xml
1 2 3 4 5 6 7 8 9 10
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE generatorConfiguration
PUBLIC "-//mybatis.org//DTD MyBatis Generator Configuration 1.0//EN"
"http://mybatis.org/dtd/mybatis-generator-config_1_0.dtd">
<generatorConfiguration>
<properties resource="util/generatorConfig.properties" />
<!-- classPathEntry:数据库的JDBC驱动,换成你自己的驱动位置 -->
<classPathEntry location="${classPath}" />
View citydata.json
1 2
{"province":[{name:"北京",code:"110000"},{name:"澳门",code:"820000"},{name:"河北",code:"130000"},{name:"内蒙古",code:"150000"},{name:"辽宁",code:"210000"},{name:"山西",code:"140000"},{name:"吉林",code:"220000"},{name:"上海",code:"310000"},{name:"江苏",code:"320000"},{name:"黑龙江",code:"230000"},{name:"福建",code:"350000"},{name:"浙江",code:"330000"},{name:"安徽",code:"340000"},{name:"山东",code:"370000"},{name:"江西",code:"360000"},{name:"河南",code:"410000"},{name:"湖南",code:"430000"},{name:"湖北",code:"420000"},{name:"海南",code:"460000"},{name:"广西",code:"450000"},{name:"广东",code:"440000"},{name:"四川",code:"510000"},{name:"重庆",code:"500000"},{name:"西藏",code:"540000"},{name:"陕西",code:"610000"},{name:"贵州",code:"520000"},{name:"云南",code:"530000"},{name:"新疆",code:"650000"},{name:"青海",code:"630000"},{name:"宁夏",code:"640000"},{name:"甘肃",code:"620000"},{name:"台湾",code:"710000"},{name:"香港",code:"810000"},{name:"天津",code:"120000"}],
"city":[{name:"东城区",code:"110100"},{name:"西城区",code:"110200"},{name:"朝阳区",code:"110500"},{name:"丰台区",code:"110600"},{name:"
View ubuntu.source.list
1 2 3 4 5 6 7 8 9 10
deb http://ubuntu.srt.cn/ubuntu/ utopic main restricted universe multiverse
deb http://ubuntu.srt.cn/ubuntu/ utopic-security main restricted universe multiverse
deb http://ubuntu.srt.cn/ubuntu/ utopic-updates main restricted universe multiverse
deb http://ubuntu.srt.cn/ubuntu/ utopic-proposed main restricted universe multiverse
deb http://ubuntu.srt.cn/ubuntu/ utopic-backports main restricted universe multiverse
deb-src http://ubuntu.srt.cn/ubuntu/ utopic main restricted universe multiverse
deb-src http://ubuntu.srt.cn/ubuntu/ utopic-security main restricted universe multiverse
deb-src http://ubuntu.srt.cn/ubuntu/ utopic-updates main restricted universe multiverse
deb-src http://ubuntu.srt.cn/ubuntu/ utopic-proposed main restricted universe multiverse
deb-src http://ubuntu.srt.cn/ubuntu/ utopic-backports main restricted universe multiverse
View Arith.java
1 2 3 4 5 6 7 8 9 10
 
 
import java.math.BigDecimal;
 
/**
* 由于Java的简单类型不能够精确的对浮点数进行运算,这个工具类提供精 确的浮点数运算,包括加减乘除和四舍五入。
*/
 
public class Arith {
// 默认除法运算精度
View Javanet.post.java
1 2 3 4 5 6 7 8 9 10
String url = "http://localhost/actions/api/file/addFile";
URL obj = new URL(url);
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
 
//add reuqest header
con.setRequestMethod("POST");
con.setRequestProperty("User-Agent", "google chrome");
con.setRequestProperty("Accept-Language", "en-US,en;q=0.5");
 
StringBuilder urlParameters = new StringBuilder();
View generatorConfig.xml
1 2 3 4 5 6 7 8 9
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE generatorConfiguration
PUBLIC "-//mybatis.org//DTD MyBatis Generator Configuration 1.0//EN"
"http://mybatis.org/dtd/mybatis-generator-config_1_0.dtd">
 
 
<generatorConfiguration>
<!--数据库驱动jar -->
<classPathEntry location="E:\mysql-connector-java-5.1.7-bin.jar" />
View generatorConfig.xml
1 2 3 4 5 6 7 8 9 10
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE generatorConfiguration PUBLIC "-//mybatis.org//DTD MyBatis Generator Configuration 1.0//EN" "http://mybatis.org/dtd/mybatis-generator-config_1_0.dtd">
 
<!-- oracle xml template -->
<generatorConfiguration>
 
<!--ORACLE 数据库驱动jar -->
<classPathEntry
location="E:/MavenRepository/com/oracle/ojdbc14/14/ojdbc14-14.jar" />
<!-- This should cause an error because sqlMapGenerator is required for
View chrome.pac
1 2 3 4 5 6 7
 
function FindProxyForURL(u,h){US="PROXY c.jayproxy.org:3000"
JP="PROXY jp.jayproxy.net:6002"
UK=US
SCHOLAR="PROXY scholar.jayproxy.org:9999"
a=["apple.com","microsoft.com","douban.com","360.cn","360safe.com","pptv.com","360.com","panx.com","alicdn.com","amzone.cn","z.cn","icloud.com","letv.com","ap-sin-00001.s3.amazonaws.com","tudou.com","weibo.com","xunlei.com","sohu.com","taobao.com","qq.com","163.com","sina.cn","alipay.com","youku.com"];for(i=0;i<a.length;i++){if(dnsDomainIs(h,a[i])){return"DIRECT"}}
if(dnsDomainIs(h,"bbc.co.uk"))return UK;if(h.indexOf(".blogspot.")!==-1)return US;if(h.indexOf("parliament")!==-1)return UK;if(h.indexOf("scholar.google.com")!==-1)return SCHOLAR;if(h.indexOf(".gov.sg")!==-1)return US;if(h.indexOf(".com.sg")!==-1)return US;if(h.indexOf(".google.")!==-1)return US;if(h.substr(-3,3)==".tw")return US;if(h.substr(-3,3)==".de")return US;if(h.substr(-3,3)==".jp")return JP;if(h.substr(-3,3)==".us")return US;if(h.substr(-3,3)==".uk")return UK;if(h.substr(-3,3)==".hk")return US;if(h.su
Something went wrong with that request. Please try again.