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
# 其它内容.... | |
default_asides: [asides/recent_posts.html, asides/weibo.html, asides/github.html, asides/[Twitter][].html, asides/googleplus.html] | |
# 其它内容.... | |
# Please refer to http://weibo.com/tool/weiboshow to get your uid and verifier. | |
weibo_uid: 1098907490 | |
weibo_verifier: abd54ad9 |
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 LANG=zh_CN.UTF-8 | |
set LC_ALL=zh_CN.UTF-8 |
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
# Please refer to http://weibo.com/tool/weiboshow to get your uid and verifier. | |
weibo_uid: 1098907490 | |
weibo_verifier: abd54ad9 | |
weibo_fansline: 0 # How many lines for the fan list | |
weibo_show: true # Whether you want your weibo content to be shown | |
weibo_pic: true # Whether you want the pictures in weibo to be shown | |
weibo_skin: 10 # Please refer to http://weibo.com/tool/weiboshow | |
weibo_share: true # Whether show the sharing button |
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.util.Random; | |
public class StringBufferVsStringBuilder { | |
public static int demo(final Object stringJoiner, final int testCount) throws InterruptedException { | |
ThreadGroup group = new ThreadGroup(stringJoiner.getClass().getName() + "@" + stringJoiner.hashCode()); | |
final Random rand = new Random(); | |
Runnable listAppender = new Runnable() { | |
public void run() { | |
try { |
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.util.Calendar; | |
/** | |
* This is a class to prove that merge strings by StringBuffer is quite quicker than String. | |
* | |
* @author Programus | |
* | |
*/ | |
public class StringMerger { | |
/** |
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.lang.ref.WeakReference; | |
/** | |
* Class to research strings. | |
* constant string like "AAA" won't be reclaimed while instance created by new will. | |
* when you new a String by a constant string, there will be two memory field stored the same value. | |
* so initialize a String by constant String is recommended. | |
* @author Programus | |
*/ | |
public class NewOrNot { |
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
* + table { | |
border-style:solid; | |
border-width:1px; | |
border-color:#e7e3e7; | |
} | |
* + table th, * + table td { | |
border-style:dashed; | |
border-width:1px; | |
border-color:#e7e3e7; |
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 lang="en"> | |
<head> | |
<meta charset="utf-8" /> | |
<!-- Always force latest IE rendering engine (even in intranet) & Chrome Frame | |
Remove this if you use the .htaccess --> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> | |
<title>memory</title> | |
<meta name="description" content="A memory game." /> | |
<meta name="author" content="Programus" /> |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Web; | |
using System.Text; | |
namespace CIS_StdWebServices.Utils | |
{ | |
public class JsonUtilities | |
{ |
OlderNewer