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
systemLog: | |
destination: file | |
path: "/home/ubuntu/data/mongolog/mongodb.log" | |
quiet: true | |
logAppend: true | |
storage: | |
journal: | |
enabled: true | |
dbPath: "/home/ubuntu/data/mongodata" | |
processManagement: |
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
{ | |
"findItemsAdvancedResponse": [ | |
{ | |
"ack": [ | |
"Success" | |
], | |
"version": [ | |
"1.12.0" | |
], | |
"timestamp": [ |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta name="description" content="颜色面板" /> | |
<meta charset="utf-8"> | |
<title>收集漂亮的颜色</title> | |
<style> | |
a{ | |
padding: 10px 16px; | |
margin-top: 20px; |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta name="description" content="颜色面板" /> | |
<meta charset="utf-8"> | |
<title>收集漂亮的颜色</title> | |
<style> | |
a{ | |
padding: 10px 16px; | |
margin-top: 20px; |
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($) { | |
$.Address = { | |
Share: { | |
initialRegion: function () { | |
_initialRegion(); | |
}, | |
callback:function(){}, | |
geoGPSInfo: {}, | |
geoIPInfo: {} | |
}, |
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 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 |
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
<?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 |
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
<?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" /> |
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
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(); |
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 java.math.BigDecimal; | |
/** | |
* 由于Java的简单类型不能够精确的对浮点数进行运算,这个工具类提供精 确的浮点数运算,包括加减乘除和四舍五入。 | |
*/ | |
public class Arith { | |
// 默认除法运算精度 |