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
JVM’s limit of 65536 bytes of bytecode per method. | |
一个方法只能有255个参数 |
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 inspect | |
class Test1(): | |
@staticmethod | |
def printMethodName (): | |
print( "method:" + inspect.stack()[1][3] + "\n") |
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
<div style="width:200px;overflow:hidden;word-warp:break-word;word-break:break-all;"> | |
${折行} | |
</div> | |
<div style="width:80px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;"> | |
${截取 } | |
</div> | |
<pre style="white-space:pre-wrap; white-space:-moz-pre-wrap; white-space:-pre-wrap; white-space:-o-pre-wrap;word-warp:break-word;word-break:break-all;"> | |
</pre> |
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
//13311 | |
//40891 | |
//59412 | |
//64045 |
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
Map<String, String> map = new HashMap<String, String>() { | |
{ | |
put("a", "a"); | |
put("b", "b"); | |
} | |
}; |
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
有多少人用Log4j的时候会在每一个Debug/Info之前加一个判断? | |
可能很多人都说了,这有什么关系,我在运行的时候是把Log Level设置成Error的。 | |
那么请看下面这个代码: | |
String result; | |
... | |
... | |
... |
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 JAVA_OPTS=-Xms256m -Xmx1024m -XX:PermSize=128M -XX:MaxNewSize=256m -XX:MaxPermSize=256m |
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
SELECT * | |
INTO OUTFILE 'path' | |
FIELDS TERMINATED BY ' | ' | |
FROM table |
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
private final long day = 1000L*60L*60L*24L; | |
private final long hour = 1000L*60L*60L; | |
private final long min = 1000L*60L; | |
private final long sec = 1000L; | |
private String countDownTimeStr(Date openDate, Date endDate) { | |
StringBuilder result = new StringBuilder(); | |
Date now = new Date(); | |
Date deadLine = openDate.after(now)?openDate:endDate; |
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"?> | |
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd"> | |
<localRepository></localRepository> | |
<pluginGroups></pluginGroups> | |
<proxies></proxies> | |
OlderNewer